73% wider-admin-menu

Code Review | Wider Admin Menu

WordPress plugin Wider Admin Menu scored73%from 54 tests.

About plugin

  • Plugin page: wider-admin-menu
  • Plugin version: 1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Apr 8, 2014
  • Latest release: Aug 9, 2023
  • Number of updates: 96
  • Update frequency: every 35.5 days
  • Top authors: cdillon27 (81.25%)machothemes (9.38%)raldea89 (7.29%)giucu91 (4.17%)wpchill (2.08%)

Code review

54 tests

User reviews

21 reviews

Install metrics

2,000+ active /20,375 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.55ms] Passed 4 tests

An overview of server-side resources used by Wider Admin Menu
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.06 ▼1.06
Dashboard /wp-admin3.35 ▲0.0448.58 ▼1.76
Posts /wp-admin/edit.php3.40 ▲0.0443.21 ▼5.71
Add New Post /wp-admin/post-new.php5.93 ▲0.0478.49 ▼17.67
Media Library /wp-admin/upload.php3.27 ▲0.0433.02 ▼0.76

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Wider Admin Menu
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.63 ▲0.412.06 ▲0.4845.03 ▲6.12
Dashboard /wp-admin2,204 ▲235.62 ▼0.0487.38 ▼13.9241.94 ▼1.66
Posts /wp-admin/edit.php2,109 ▲92.02 ▲0.0436.09 ▲0.3533.68 ▲0.72
Add New Post /wp-admin/post-new.php1,536 ▼322.85 ▼0.25691.30 ▲6.4553.21 ▼2.64
Media Library /wp-admin/upload.php1,409 ▲64.15 ▼0.0494.53 ▼7.1441.09 ▼5.32
Wider Admin Menu /wp-admin/wider-admin-menu.php260.420.0613.99

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 5× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wider-admin-menu/includes/style33.php
    • > /wp-content/plugins/wider-admin-menu/includes/style40.php
    • > /wp-content/plugins/wider-admin-menu/includes/style35.php
    • > /wp-content/plugins/wider-admin-menu/includes/style50.php
    • > /wp-content/plugins/wider-admin-menu/includes/style38.php
  • 54× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: w1px in wp-content/plugins/wider-admin-menu/includes/style33.php on line 22
    • > PHP Notice
      Undefined variable: wp_version in wp-content/plugins/wider-admin-menu/includes/style35.php on line 2
    • > PHP Notice
      Undefined variable: wpx in wp-content/plugins/wider-admin-menu/includes/style33.php on line 27
    • > PHP Notice
      Undefined variable: wpx in wp-content/plugins/wider-admin-menu/includes/style40.php on line 23
    • > PHP Notice
      Undefined variable: w1px in wp-content/plugins/wider-admin-menu/includes/style33.php on line 21
    • > PHP Notice
      Undefined variable: w1px in wp-content/plugins/wider-admin-menu/includes/style33.php on line 17
    • > PHP Notice
      Undefined variable: wpx in wp-content/plugins/wider-admin-menu/includes/style40.php on line 5
    • > PHP Notice
      Undefined variable: w1px in wp-content/plugins/wider-admin-menu/includes/style35.php on line 20
    • > PHP Notice
      Undefined variable: w1px in wp-content/plugins/wider-admin-menu/includes/style33.php on line 24
    • > PHP Notice
      Undefined variable: wpx in wp-content/plugins/wider-admin-menu/includes/style50.php on line 43

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/wider-admin-menu.php
    • > Network (severe)
    wp-admin/wider-admin-menu.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: admin menu

wider-admin-menu/wider-admin-menu.php Passed 13 tests

"Wider Admin Menu" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
28 characters long description:
Let your admin menu breathe.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected773 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP967153421
CSS95145244
JavaScript22910108

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/lnt.png0.50KB0.52KB0.00%