84% customize-plugin-manager

Code Review | Customize Plugin Manager

WordPress plugin Customize Plugin Manager scored84%from 54 tests.

About plugin

  • Plugin page: customize-plugin-...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.7
  • WordPress version: 6.3.1
  • First release: Jul 7, 2017
  • Latest release: Feb 28, 2021
  • Number of updates: 9
  • Update frequency: every 147.9 days
  • Top authors: celloexpressions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,104 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.00MB] [CPU: ▼7.23ms] Passed 4 tests

Analyzing server-side resources used by Customize Plugin Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.79 ▲2.11
Dashboard /wp-admin3.32 ▼0.0348.04 ▼19.41
Posts /wp-admin/edit.php3.37 ▲0.0149.33 ▲1.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.62 ▼12.05
Media Library /wp-admin/upload.php3.24 ▲0.0134.23 ▲1.22

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Customize Plugin Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.011.72 ▲0.0146.11 ▲2.34
Dashboard /wp-admin2,198 ▲185.64 ▼0.0087.57 ▼6.8839.59 ▼0.17
Posts /wp-admin/edit.php2,100 ▼31.99 ▲0.0234.88 ▲0.2734.71 ▲0.60
Add New Post /wp-admin/post-new.php1,541 ▲1323.10 ▼0.03665.38 ▼33.8059.63 ▲3.17
Media Library /wp-admin/upload.php1,400 ▲34.23 ▲0.09105.51 ▲6.0346.56 ▲5.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/customize-plugin-manager/class-wp-customize-plugin-control.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-plugin-manager/customize-plugin-manager.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: plugins, customize

customize-plugin-manager/customize-plugin-manager.php Passed 13 tests

The main file in "Customize Plugin Manager" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
52 characters long description:
Manage plugins within the customizer (experimental).

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
No dangerous file extensions were detected127 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2329096
JavaScript181627
CSS1004

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
There were not PNG files found in your plugin