84% customize-admin

Code Review | Customize Admin

WordPress plugin Customize Admin scored84%from 54 tests.

About plugin

  • Plugin page: customize-admin
  • Plugin version: 1.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.4
  • WordPress version: 6.3.1
  • First release: Dec 16, 2010
  • Latest release: Oct 30, 2023
  • Number of updates: 81
  • Update frequency: every 58.0 days
  • Top authors: vanderwijk (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

7,000+ active /90,459 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
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.88ms] Passed 4 tests

Server-side resources used by Customize Admin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.41 ▼1.89
Dashboard /wp-admin3.38 ▲0.0846.38 ▼1.98
Posts /wp-admin/edit.php3.43 ▲0.0845.77 ▼8.57
Add New Post /wp-admin/post-new.php5.96 ▲0.0888.80 ▼7.08
Media Library /wp-admin/upload.php3.31 ▲0.0836.62 ▲3.03
Customize Admin /wp-admin/options-general.php?page=customize-admin/customize-admin-options.php3.3136.93

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Customize Admin: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲2414.24 ▼0.362.06 ▼0.3541.28 ▼3.16
Dashboard /wp-admin2,196 ▲195.66 ▼0.1087.50 ▼4.8438.93 ▼2.48
Posts /wp-admin/edit.php2,104 ▲12.02 ▲0.0838.42 ▼2.8837.46 ▼0.15
Add New Post /wp-admin/post-new.php1,532 ▲623.30 ▼0.38608.15 ▼112.2150.05 ▼14.37
Media Library /wp-admin/upload.php1,404 ▲44.17 ▲0.0293.44 ▼1.1144.97 ▲3.34
Customize Admin /wp-admin/options-general.php?page=customize-admin/customize-admin-options.php1,4685.62113.9539.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, 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 short smoke test looking for 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
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/customize-admin/customize-admin.php
    • > /wp-content/plugins/customize-admin/customize-admin-options.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (You can specify the logo image and clickthrough link on the options page. It is also possible to disable the generator meta tag and specified dashboard widgets.)
The official readme.txt might help

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

"Customize Admin" version 1.9.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
There were no executable files found in this plugin394 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP24443290
PO File1262677
JavaScript28625
Markdown1002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.22MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vanderwijk.png18.96KB7.00KB▼ 63.07%
screenshot-1.png203.25KB92.98KB▼ 54.25%