84% show-customizer

Code Review | Show Customizer

WordPress plugin Show Customizer scored84%from 54 tests.

About plugin

  • Plugin page: show-customizer
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.1
  • WordPress version: 6.3.1
  • First release: Apr 11, 2023
  • Latest release: Apr 12, 2023
  • Number of updates: 3
  • Update frequency: every 10.7 days
  • Top authors: affordance (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /117 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.81ms] Passed 4 tests

A check of server-side resources used by Show Customizer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.68 ▼0.11
Dashboard /wp-admin3.31 ▲0.0054.09 ▲1.46
Posts /wp-admin/edit.php3.36 ▲0.0047.69 ▼6.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.62 ▼10.29
Media Library /wp-admin/upload.php3.23 ▲0.0036.30 ▲2.69

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/show-customizer/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Show Customizer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.57 ▼0.621.85 ▼0.0241.50 ▼1.48
Dashboard /wp-admin2,218 ▲155.83 ▲0.9498.82 ▼6.3338.68 ▼3.15
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0237.46 ▼0.7935.03 ▲1.30
Add New Post /wp-admin/post-new.php1,545 ▼023.31 ▲0.27654.01 ▲29.8350.63 ▲0.84
Media Library /wp-admin/upload.php1,400 ▼34.22 ▼0.1095.65 ▼2.5844.06 ▲1.96

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/show-customizer/show-customizer.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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
5 plugin tags: customizer, theme settings, identity, favicon, settings

show-customizer/show-customizer.php Passed 13 tests

Analyzing the main PHP file in "Show Customizer" version 1.0.0
65 characters long description:
Shows the theme customizer after it was removed in WordPress 5.9.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1192

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.00
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%
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