73% wp-custom-admin-interface

Code Review | WP Custom Admin Interface

WordPress plugin WP Custom Admin Interface scored73%from 54 tests.

About plugin

  • Plugin page: wp-custom-admin-i...
  • Plugin version: 7.34
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: May 13, 2017
  • Latest release: Nov 3, 2023
  • Number of updates: 178
  • Update frequency: every 13.3 days
  • Top authors: northernbeacheswebsites (100%)

Code review

54 tests

User reviews

147 reviews

Install metrics

30,000+ active /348,258 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.66MB] [CPU: ▼5.06ms] Passed 4 tests

An overview of server-side resources used by WP Custom Admin Interface
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6344.27 ▲1.60
Dashboard /wp-admin4.03 ▲0.6851.53 ▼6.15
Posts /wp-admin/edit.php4.08 ▲0.7256.22 ▼0.91
Add New Post /wp-admin/post-new.php6.57 ▲0.6885.55 ▼12.68
Media Library /wp-admin/upload.php3.89 ▲0.6641.09 ▼0.49
Admin Notice /wp-admin/admin.php?page=wpcai_admin_notice3.8941.18
Admin Toolbar /wp-admin/admin.php?page=wpcai_admin_toolbar3.8643.75
Custom Code Frontend /wp-admin/admin.php?page=wpcai_custom_code_frontend3.9139.11
Manage Settings /wp-admin/admin.php?page=wpcai_manage_settings3.8941.54
Admin Menu /wp-admin/admin.php?page=wpcai_admin_menu3.8738.44
Maintenance Page /wp-admin/admin.php?page=wpcai_maintenance_page3.9345.35
Hide Plugins /wp-admin/admin.php?page=wpcai_hide_plugins3.8942.75
Hide Meta /wp-admin/admin.php?page=wpcai_hide_meta3.8943.63
Help /wp-admin/admin.php?page=wpcai_help3.9045.62
Hide Sidebars /wp-admin/admin.php?page=wpcai_hide_sidebars3.8955.21

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 95 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP Custom Admin Interface
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲17714.71 ▲0.371.74 ▲0.1543.06 ▲1.76
Dashboard /wp-admin2,343 ▲1665.64 ▼0.0387.01 ▼6.3933.66 ▼10.49
Posts /wp-admin/edit.php2,244 ▲1442.16 ▲0.1840.44 ▼2.2431.66 ▼4.11
Add New Post /wp-admin/post-new.php1,585 ▲5923.52 ▲0.47678.77 ▼17.5658.06 ▲2.14
Media Library /wp-admin/upload.php1,538 ▲1414.25 ▲0.0895.69 ▼17.8541.69 ▼5.58
Admin Notice /wp-admin/admin.php?page=wpcai_admin_notice2,0067.42152.81158.31
Admin Toolbar /wp-admin/admin.php?page=wpcai_admin_toolbar2,0293.9985.6670.40
Custom Code Frontend /wp-admin/admin.php?page=wpcai_custom_code_frontend1,5564.1573.7647.24
Manage Settings /wp-admin/admin.php?page=wpcai_manage_settings1,4503.2753.1837.05
Admin Menu /wp-admin/admin.php?page=wpcai_admin_menu20,1434.0997.2776.79
Maintenance Page /wp-admin/admin.php?page=wpcai_maintenance_page1,8557.21126.71102.39
Hide Plugins /wp-admin/admin.php?page=wpcai_hide_plugins1,3823.5046.8960.37
Hide Meta /wp-admin/admin.php?page=wpcai_hide_meta14,0373.53129.3674.94
Help /wp-admin/admin.php?page=wpcai_help1,70311.37285.5367.43
Hide Sidebars /wp-admin/admin.php?page=wpcai_hide_sidebars1,3613.4846.7374.65

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpcai_admin_menu
    • > Notice in wp-content/plugins/wp-custom-admin-interface/inc/options/options-output.php+1595
    Trying to access array offset on value of type bool

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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-custom-admin-interface/wp-custom-admin-interface.php:26

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpcai_hide_meta
    • > Javascript (severe) in unknown
    /wp-content/plugins/wp-custom-admin-interface/inc/options/options-page-hide-meta.min.js?ver=7.34 0:1908 Uncaught TypeError: Cannot read properties of undefined (reading 'innerHTML')

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 20 tag instead of maximum 10
You can take inspiration from this readme.txt

wp-custom-admin-interface/wp-custom-admin-interface.php Passed 13 tests

This is the main PHP file of "WP Custom Admin Interface" version 7.34, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
94 characters long description:
Customise the WordPress admin and login interfaces and customize the WordPress dashboard menu.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected21,114 lines of code in 78 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript622,7591,62113,375
PHP31,5926723,224
SVG2012,707
PO File4328328955
CSS715230853

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions135
▷ Named functions13499.26%
▷ Anonymous functions10.74%
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 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/images/custom-admin-interface-pro-logo.png8.55KB8.52KB0.42%