10% customize-wp-admin

Code Review | Customize WP-admin

WordPress plugin Customize WP-admin scored10%from 54 tests.

About plugin

  • Plugin page: customize-wp-admin
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Jan 6, 2013
  • Latest release: Jan 26, 2013
  • Number of updates: 24
  • Update frequency: every 0.8 days
  • Top authors: acrogenesis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /6,828 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/customize-wp-admin/customize-wp-admin.php+428
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼0.77MB] [CPU: ▼35.34ms] Passed 4 tests

Server-side resources used by Customize WP-admin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1338.46 ▲2.63
Dashboard /wp-admin3.19 ▼0.1623.46 ▼31.44
Posts /wp-admin/edit.php3.19 ▼0.1724.11 ▼21.83
Add New Post /wp-admin/post-new.php3.19 ▼2.7024.51 ▼81.51
Media Library /wp-admin/upload.php3.19 ▼0.0424.98 ▼6.59

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
cwa_options
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Customize WP-admin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.27 ▼1.041.75 ▲0.0140.29 ▲1.75
Dashboard /wp-admin2,218 ▲264.90 ▼0.01101.48 ▼12.7778.67 ▲28.82
Posts /wp-admin/edit.php2,101 ▲121.97 ▼0.0237.75 ▼3.5531.89 ▼3.32
Add New Post /wp-admin/post-new.php1,687 ▲14524.22 ▲5.68700.87 ▲87.1049.61 ▼15.86
Media Library /wp-admin/upload.php1,397 ▲64.23 ▲0.0595.51 ▼4.6574.47 ▲29.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/customize-wp-admin/customize-wp-admin.php+484
    Undefined index: remove_dashboard
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • cwa_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/customize-wp-admin/customize-wp-admin.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === customize-wp-admin === )
The official readme.txt is a good inspiration

customize-wp-admin/customize-wp-admin.php 92% from 13 tests

The main PHP file in "Customize WP-admin" ver. 0.2.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 172 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected808 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP12948532
PO File2114232264
JavaScript12112

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions71
▷ Named functions71100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png2.06KB1.12KB▼ 45.71%