84% customizer-toolkits

Code Review | Customizer Toolkits

WordPress plugin Customizer Toolkits scored84%from 54 tests.

About plugin

  • Plugin page: customizer-toolkits
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 6.3.1
  • First release: Dec 24, 2021
  • Latest release: Dec 24, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: ashathemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /276 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼11.99ms] Passed 4 tests

Analyzing server-side resources used by Customizer Toolkits
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0939.57 ▼4.59
Dashboard /wp-admin3.40 ▲0.0549.18 ▼17.03
Posts /wp-admin/edit.php3.45 ▲0.0946.26 ▼7.58
Add New Post /wp-admin/post-new.php5.98 ▲0.0982.40 ▼18.75
Media Library /wp-admin/upload.php3.32 ▲0.0935.28 ▲0.39

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Customizer Toolkits: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.69 ▼0.681.74 ▼0.4543.35 ▼1.89
Dashboard /wp-admin2,209 ▲244.87 ▼0.9896.80 ▼13.3241.84 ▼1.40
Posts /wp-admin/edit.php2,089 ▼31.98 ▼0.0636.47 ▼8.6231.86 ▼8.26
Add New Post /wp-admin/post-new.php1,544 ▲2523.39 ▼0.12611.03 ▼28.1749.61 ▲0.83
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.0392.34 ▼6.5940.68 ▼1.26

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customizer-toolkits/inc/customizer.php:614

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: theme-options, theme-settings, customizer-options, customization, customizer

customizer-toolkits/customizer-toolkits.php 85% from 13 tests

Analyzing the main PHP file in "Customizer Toolkits" version 1.0.0
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 175 characters long)
  • 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 plugin572 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24788572

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin