84% customize-pro-engine

Code Review | Customize Pro Engine

WordPress plugin Customize Pro Engine scored84%from 54 tests.

About plugin

  • Plugin page: customize-pro-engine
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.3
  • WordPress version: 6.3.1
  • First release: Sep 20, 2019
  • Latest release: Nov 26, 2019
  • Number of updates: 3
  • Update frequency: every 22.7 days
  • Top authors: seothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /520 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Customize Pro Engine
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0235.28 ▼6.36
Dashboard /wp-admin3.32 ▲0.0146.17 ▼3.68
Posts /wp-admin/edit.php3.37 ▲0.0146.17 ▼1.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.95 ▼12.26
Media Library /wp-admin/upload.php3.24 ▲0.0135.54 ▼1.50

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Customize Pro Engine
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.24 ▼1.161.71 ▼0.5442.28 ▼10.21
Dashboard /wp-admin2,203 ▲124.85 ▲0.01100.37 ▼0.4139.68 ▼4.83
Posts /wp-admin/edit.php2,086 ▼62.04 ▲0.0239.78 ▼1.3736.14 ▲1.69
Add New Post /wp-admin/post-new.php1,514 ▼517.56 ▼5.46658.54 ▲3.8452.09 ▼19.20
Media Library /wp-admin/upload.php1,391 ▲94.19 ▼0.1294.96 ▼6.3741.71 ▼0.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 104× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/customize-pro-engine/lib/structure/comments.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function CustomizePro\\__() in wp-content/plugins/customize-pro-engine/config/header/sticky.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function CustomizePro\\__() in wp-content/plugins/customize-pro-engine/config/single/featured-image.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function CustomizePro\\__() in wp-content/plugins/customize-pro-engine/config/header/primary.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/customize-pro-engine/lib/customizer/kirki.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function CustomizePro\\__() in wp-content/plugins/customize-pro-engine/config/base/inputs.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-pro-engine/lib/customizer/site-identity.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function CustomizePro\\__() in wp-content/plugins/customize-pro-engine/config/sidebars/featured-content.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function CustomizePro\\__() in wp-content/plugins/customize-pro-engine/config/single/entry.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/customize-pro-engine/lib/functions/shortcodes.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: genesis

customize-pro-engine/customize-pro-engine.php 85% from 13 tests

The main PHP file in "Customize Pro Engine" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("assets/lang")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin25,412 lines of code in 249 files:
LanguageFilesBlank linesComment linesLines of code
PHP1128433,07312,614
JavaScript191,5542,1446,029
Sass1019367673,404
CSS1276533,360
SVG5005

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity3.33
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods10
▷ Static methods440.00%
▷ Public methods770.00%
▷ Protected methods330.00%
▷ Private methods00.00%
Functions185
▷ Named functions17695.14%
▷ Anonymous functions94.86%
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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/transparency-grid.png1.47KB1.57KB0.00%