84% customizer-dev-tools

Code Review | Customizer Dev Tools

WordPress plugin Customizer Dev Tools scored84%from 54 tests.

About plugin

  • Plugin page: customizer-dev-tools
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 6.3.1
  • First release: Aug 19, 2016
  • Latest release: Nov 9, 2017
  • Number of updates: 6
  • Update frequency: every 74.5 days
  • Top authors: westonruter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,401 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲3.17ms] Passed 4 tests

An overview of server-side resources used by Customizer Dev Tools
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.72 ▼3.25
Dashboard /wp-admin3.32 ▲0.0259.49 ▲8.79
Posts /wp-admin/edit.php3.38 ▲0.0249.57 ▲0.67
Add New Post /wp-admin/post-new.php5.91 ▲0.02102.47 ▲10.00
Media Library /wp-admin/upload.php3.25 ▲0.0241.75 ▲6.47

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Customizer Dev Tools: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.23 ▲0.071.78 ▼0.1441.40 ▼1.66
Dashboard /wp-admin2,195 ▲185.66 ▼0.0091.20 ▲2.9741.86 ▼1.76
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0639.93 ▲2.5435.48 ▲3.08
Add New Post /wp-admin/post-new.php1,529 ▲323.35 ▲0.43612.67 ▲14.4266.98 ▲11.81
Media Library /wp-admin/upload.php1,397 ▼04.18 ▼0.0597.06 ▼3.6342.29 ▲1.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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)
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: customizer, developer, debug, debugging, development...

customizer-dev-tools/customizer-dev-tools.php Passed 13 tests

The main PHP file in "Customizer Dev Tools" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
99 characters long description:
Log out the console the changes to settings in the Customizer. Useful for developers and debugging.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin484 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript375112432
PHP2146152

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin