84% visualmods-inline

Code Review | VisualMods Inline

WordPress plugin VisualMods Inline scored 84% from 54 tests.

About plugin

  • Plugin page: visualmods-inline
  • Plugin version: 1.03
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.2
  • WordPress version: 6.3.1
  • First release: May 11, 2016
  • Latest release: May 13, 2016
  • Number of updates: 30
  • Update frequency: every 0.1 days
  • Top authors: clintstegman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,337 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.93ms] Passed 4 tests

An overview of server-side resources used by VisualMods Inline
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.45 ▼15.38
Dashboard /wp-admin3.31 ▲0.0144.85 ▲2.47
Posts /wp-admin/edit.php3.36 ▲0.0155.43 ▲12.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.96 ▼10.02
Media Library /wp-admin/upload.php3.23 ▲0.0135.20 ▲3.21

Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for VisualMods Inline
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.75 ▲0.101.99 ▼0.0144.32 ▼27.01
Dashboard /wp-admin2,206 ▲154.85 ▲0.0097.79 ▼2.8938.25 ▼7.23
Posts /wp-admin/edit.php2,089 ▲211.96 ▼0.0540.01 ▲2.7335.77 ▲2.55
Add New Post /wp-admin/post-new.php1,388 ▼14516.78 ▼6.26582.34 ▼97.3432.05 ▼16.72
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0298.10 ▼5.4843.33 ▼3.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visualmods-inline/visualmods-inline.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
The official readme.txt might help

visualmods-inline/visualmods-inline.php Passed 13 tests

"VisualMods Inline" version 1.03's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
38 characters long description:
Adds easy inline styling tools to mce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin932 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript47616492
PHP13811314
CSS131126

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.02
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
26 PNG files occupy 0.27MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/cell-text-bg.png10.19KB5.02KB▼ 50.74%
images/ArrowQuad.png29.58KB11.48KB▼ 61.19%
images/bluetopright.png4.66KB3.44KB▼ 26.27%
images/tango-generic-image.png23.95KB10.31KB▼ 56.94%
images/css.png0.82KB1.03KB0.00%