84% visual-web-optimizer

Code Review | Visual Website Optimizer

WordPress plugin Visual Website Optimizer scored84%from 54 tests.

About plugin

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active /57,132 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
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.52ms] Passed 4 tests

An overview of server-side resources used by Visual Website Optimizer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0444.94 ▲3.11
Dashboard /wp-admin3.36 ▲0.0145.88 ▼12.98
Posts /wp-admin/edit.php3.41 ▲0.0549.48 ▲6.31
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.45 ▼6.90
Media Library /wp-admin/upload.php3.28 ▲0.0537.86 ▲2.71
VWO /wp-admin/options-general.php?page=clhf_vwo_options3.2534.08

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
ignore_js
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Visual Website Optimizer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5514.70 ▼0.041.71 ▼0.2540.24 ▲1.31
Dashboard /wp-admin2,210 ▲335.61 ▼0.0193.48 ▲7.2842.95 ▲0.23
Posts /wp-admin/edit.php2,112 ▲121.96 ▼0.0640.00 ▲2.0537.92 ▲7.45
Add New Post /wp-admin/post-new.php1,546 ▲1625.08 ▲2.06604.39 ▼14.1187.38 ▲35.09
Media Library /wp-admin/upload.php1,406 ▲124.18 ▼0.02100.40 ▲5.8843.10 ▼0.54
VWO /wp-admin/options-general.php?page=clhf_vwo_options9122.1829.6127.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • ignore_js
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-web-optimizer/visual-website-optimizer.php:119

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: cro, analytics, vwo, split testing, stats...

visual-web-optimizer/visual-website-optimizer.php 85% from 13 tests

"Visual Website Optimizer" version 4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 310 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("visual-web-optimizer.php" instead of "visual-website-optimizer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin226 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP134118226

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin