83% wpadminmenuaccess

Code Review | Manage WordPress Admin Menus Access

WordPress plugin Manage WordPress Admin Menus Access scored83%from 54 tests.

About plugin

  • Plugin page: wpadminmenuaccess
  • Plugin version: 1.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Jul 30, 2019
  • Latest release: Dec 22, 2019
  • Number of updates: 3
  • Update frequency: every 48.4 days
  • Top authors: dbcoss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /533 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.12ms] Passed 4 tests

Server-side resources used by Manage WordPress Admin Menus Access
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.30 ▼15.52
Dashboard /wp-admin3.34 ▲0.0446.65 ▼0.78
Posts /wp-admin/edit.php3.39 ▲0.0350.43 ▲3.73
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.99 ▼7.89
Media Library /wp-admin/upload.php3.26 ▲0.0338.90 ▲4.21
Manage Access /wp-admin/admin.php?page=manage_access_sub3.2332.53

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Manage WordPress Admin Menus Access
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7613.16 ▼1.211.59 ▼0.2938.26 ▼6.84
Dashboard /wp-admin2,228 ▲405.84 ▼0.01109.04 ▼7.4282.59 ▲40.44
Posts /wp-admin/edit.php2,117 ▲282.03 ▼0.0338.62 ▲2.2032.81 ▲0.22
Add New Post /wp-admin/post-new.php1,538 ▲1923.09 ▼0.06756.10 ▲52.4450.19 ▼15.21
Media Library /wp-admin/upload.php1,413 ▲284.21 ▼0.10110.88 ▲6.7651.78 ▲5.55
Manage Access /wp-admin/admin.php?page=manage_access_sub1,4251.6925.2235.03

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpadminmenuaccess/wpadminmenuaccess.php:15

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • License: Empty value
  • Donate link: Invalid URI found ("")
  • License uri: Invalid URI found ("")
You can take inspiration from this readme.txt

wpadminmenuaccess/wpadminmenuaccess.php Passed 13 tests

The main PHP file in "Manage WordPress Admin Menus Access" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
35 characters long description:
Manage WordPress Admin Menus Access

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin216 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11515193
CSS11023

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.61
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and 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
icon/dbcoss_icon_g.png1.69KB0.87KB▼ 48.44%