94% admin-customizer

Code Review | Admin Customizer

WordPress plugin Admin Customizer scored 94% from 54 tests.

About plugin

  • Plugin page: admin-customizer
  • Plugin version: 2.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 5.9.2
  • First release: Nov 4, 2013
  • Latest release: Mar 7, 2022
  • Number of updates: 66
  • Update frequency: every 46.2 days
  • Top authors: rabmalin (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active / 22,258 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼296.38ms] 75% from 4 tests

This is a short check of server-side resources used by Admin Customizer
It is recommended to improve the following
  • CPU: The total CPU usage must kept under 500.00ms (currently 1,806.68ms on /wp-admin/options-general.php?page=admin-customizer)
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1455.01 ▲3.20
Dashboard /wp-admin3.54 ▲0.1335.04 ▲0.36
Posts /wp-admin/edit.php3.83 ▲0.1937.37 ▼2.82
Add New Post /wp-admin/post-new.php7.07 ▲0.1091.90 ▼1,181.20
Media Library /wp-admin/upload.php3.48 ▲0.1924.00 ▼1.84
Admin Customizer /wp-admin/options-general.php?page=admin-customizer4.651,806.68

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 59 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Admin Customizer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,332 ▼42215.64 ▲0.065.99 ▼1.431.85 ▼0.79
Dashboard /wp-admin2,482 ▼3766.06 ▼0.16113.35 ▼17.24112.92 ▼44.08
Posts /wp-admin/edit.php2,624 ▼673.24 ▼0.0160.96 ▼4.54125.81 ▼17.27
Add New Post /wp-admin/post-new.php1,584 ▼7719.35 ▲1.29417.45 ▲14.47160.78 ▲4.86
Media Library /wp-admin/upload.php1,630 ▼655.56 ▲0.05139.87 ▲0.95173.50 ▼15.38
Admin Customizer /wp-admin/options-general.php?page=admin-customizer2,9249.77194.67131.34

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 33× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/wysiwyg.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/custom_taxonomy_checkbox.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/radio.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/text.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/switch.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/color.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/nav_menu_select.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/checkbox.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/custom_taxonomy_select.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'npf_field' not found in wp-content/plugins/admin-customizer/npf-framework/fields/on_off.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: dashboard, theme, backend, customization, admin...

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

The main file in "Admin Customizer" v. 2.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
79 characters long description:
This plugin allows you to customize the admin interface of your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,393 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity5.67
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes00.00%
▷ Static methods11.03%
▷ Public methods9496.91%
▷ Protected methods11.03%
▷ Private methods22.06%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants5100.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
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
npf-framework/assets/vendor/tzcheckbox/background.png4.96KB2.59KB▼ 47.82%
npf-framework/assets/images/checks.png0.66KB0.65KB▼ 0.60%
npf-framework/assets/vendor/select2/select2x2.png0.83KB0.77KB▼ 6.15%