84% customizer-everywhere

Code Review | Customizer Everywhere

WordPress plugin Customizer Everywhere scored84%from 54 tests.

About plugin

  • Plugin page: customizer-everyw...
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.8
  • WordPress version: 6.3.1
  • First release: Sep 29, 2013
  • Latest release: Feb 25, 2015
  • Number of updates: 4
  • Update frequency: every 128.5 days
  • Top authors: westonruter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server-side resources used by Customizer Everywhere
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.44 ▲3.78
Dashboard /wp-admin3.31 ▼0.0345.45 ▼16.93
Posts /wp-admin/edit.php3.36 ▲0.0144.69 ▼6.82
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.79 ▼38.24
Media Library /wp-admin/upload.php3.23 ▲0.0034.25 ▼1.45

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Customizer Everywhere
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.111.76 ▲0.1044.47 ▲1.10
Dashboard /wp-admin2,206 ▲185.91 ▲0.99105.79 ▲4.0740.05 ▼3.78
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0239.83 ▲0.6336.28 ▲2.27
Add New Post /wp-admin/post-new.php1,538 ▲1923.22 ▲0.02606.69 ▼48.4851.58 ▲5.62
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0393.64 ▼1.2242.63 ▲0.09

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customizer-everywhere/customizer-everywhere.php:222

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: admin-bar, preview, widget-customizer, customizer

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

The primary PHP file in "Customizer Everywhere" version 0.1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")
  • Description: The description should be shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected810 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP349101332
Bourne Again Shell24118172
JavaScript32438108
Markdown442099
Bourne Shell112647
YAML15028
XML13024

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity16.00
▷ Minimum class complexity9.00
▷ Maximum class complexity23.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods1184.62%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin