84% visual-developer-custom-css

Code Review | Visual Developer Custom CSS

WordPress plugin Visual Developer Custom CSS scored84%from 54 tests.

About plugin

  • Plugin page: visual-developer-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Nov 22, 2015
  • Latest release: Feb 4, 2016
  • Number of updates: 5
  • Update frequency: every 14.6 days
  • Top authors: easydevelopment (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /4,930 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3342.56 ▲2.76
Dashboard /wp-admin3.61 ▲0.3043.16 ▼0.77
Posts /wp-admin/edit.php3.66 ▲0.3059.65 ▲13.33
Add New Post /wp-admin/post-new.php6.13 ▲0.24103.31 ▲12.48
Media Library /wp-admin/upload.php3.47 ▲0.2437.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.34 ▼0.031.77 ▲0.1344.26 ▼3.83
Dashboard /wp-admin2,215 ▲415.53 ▼0.0584.16 ▼0.8439.65 ▼6.62
Posts /wp-admin/edit.php2,123 ▲232.13 ▲0.1342.21 ▲3.8932.54 ▼3.55
Add New Post /wp-admin/post-new.php1,557 ▲2918.26 ▼4.81638.69 ▼55.7949.52 ▼11.45
Media Library /wp-admin/upload.php1,426 ▲264.21 ▼0.1795.51 ▼5.9247.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

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 === )
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript952,7132,81112,033
CSS3241323,001
LESS1723721,627
PHP113251601,041
SQL13034

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 code0.32
Average class complexity14.30
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes330.00%
▷ Concrete classes770.00%
▷ Final classes00.00%
Methods114
▷ Static methods21.75%
▷ Public methods10592.11%
▷ Protected methods00.00%
▷ Private methods97.89%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/img/element-panel-preferences.png2.99KB0.49KB▼ 83.53%
assets/textures/1.png83.76KB41.01KB▼ 51.03%
assets/img/panel-option-current-active.png2.99KB0.21KB▼ 93.00%
assets/img/border-radius-bottom.png3.18KB0.31KB▼ 90.31%
assets/img/margin-center.png4.18KB0.85KB▼ 79.58%