Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▲4.55ms] Passed 4 tests
An overview of server-side resources used by Visual Developer Custom CSS
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.33 | 42.56 ▲2.76 |
Dashboard /wp-admin | 3.61 ▲0.30 | 43.16 ▼0.77 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 59.65 ▲13.33 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 103.31 ▲12.48 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 37.59 ▲3.71 |
Server storage [IO: ▲4.73MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 180 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_visual_developer_page_version_assign |
wp_visual_developer_page_version_display |
wp_visual_developer_page_version_conversion |
wp_visual_developer_page_version |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
visual_developer_database_version |
Browser metrics Passed 4 tests
Checking browser requirements for Visual Developer Custom CSS
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.34 ▼0.03 | 1.77 ▲0.13 | 44.26 ▼3.83 |
Dashboard /wp-admin | 2,215 ▲41 | 5.53 ▼0.05 | 84.16 ▼0.84 | 39.65 ▼6.62 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.13 ▲0.13 | 42.21 ▲3.89 | 32.54 ▼3.55 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 18.26 ▼4.81 | 638.69 ▼55.79 | 49.52 ▼11.45 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.21 ▼0.17 | 95.51 ▼5.92 | 47.31 ▲1.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'base_prefix' of non-object in wp-content/plugins/visual-developer-custom-css/vd-implementation/databaseConnection.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'VisualDeveloperAbstractDatabase' not found in wp-content/plugins/visual-developer-custom-css/vd-library/entity/pageVersionAssign.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/visual-developer-custom-css/vd-library/model/versionControl.php:41
- > PHP Fatal error
Uncaught Error: Class 'VisualDeveloperAbstractDatabase' not found in wp-content/plugins/visual-developer-custom-css/vd-library/entity/pageVersionConversion.php:3
- > PHP Fatal error
Uncaught Error: Class 'VisualDeveloperAbstractDatabase' not found in wp-content/plugins/visual-developer-custom-css/vd-library/entity/pageVersion.php:4
- > PHP Fatal error
Uncaught Error: Class 'VisualDeveloperAbstractDatabaseConnection' not found in wp-content/plugins/visual-developer-custom-css/vd-implementation/databaseConnection.php:3
- > PHP Notice
Trying to get property 'base_prefix' of non-object in wp-content/plugins/visual-developer-custom-css/vd-implementation/databaseConnection.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'VisualDeveloperAbstractDatabase' not found in wp-content/plugins/visual-developer-custom-css/vd-library/entity/pageVersionDisplay.php:3
- > PHP Notice
Trying to get property 'base_prefix' of non-object in wp-content/plugins/visual-developer-custom-css/vd-implementation/databaseConnection.php on line 17
- > PHP Notice
Trying to get property 'base_prefix' of non-object in wp-content/plugins/visual-developer-custom-css/vd-implementation/databaseConnection.php on line 17
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== visual-developer-custom-css ===
)
visual-developer-custom-css/visual-developer.php 92% from 13 tests
Analyzing the main PHP file in "Visual Developer Custom CSS" version 1.0.2
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("visual-developer-custom-css.php" instead of "visual-developer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin17,736 lines of code in 127 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 95 | 2,713 | 2,811 | 12,033 |
CSS | 3 | 24 | 132 | 3,001 |
LESS | 17 | 237 | 2 | 1,627 |
PHP | 11 | 325 | 160 | 1,041 |
SQL | 1 | 3 | 0 | 34 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 14.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 3 | 30.00% |
▷ Concrete classes | 7 | 70.00% |
▷ Final classes | 0 | 0.00% |
Methods | 114 | |
▷ Static methods | 2 | 1.75% |
▷ Public methods | 105 | 92.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 7.89% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
44 PNG files occupy 0.22MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/element-panel-preferences.png | 2.99KB | 0.49KB | ▼ 83.53% |
assets/textures/1.png | 83.76KB | 41.01KB | ▼ 51.03% |
assets/img/panel-option-current-active.png | 2.99KB | 0.21KB | ▼ 93.00% |
assets/img/border-radius-bottom.png | 3.18KB | 0.31KB | ▼ 90.31% |
assets/img/margin-center.png | 4.18KB | 0.85KB | ▼ 79.58% |