83% adminimize

Code Review | Adminimize

WordPress plugin Adminimize scored83%from 54 tests.

About plugin

  • Plugin page: adminimize
  • Plugin version: 1.11.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 28, 2008
  • Latest release: Dec 2, 2023
  • Number of updates: 426
  • Update frequency: every 13.3 days
  • Top authors: Bueltge (99.53%)

Code review

54 tests

User reviews

252 reviews

Install metrics

200,000+ active /2,721,741 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.47MB] [CPU: ▼7.22ms] Passed 4 tests

Server-side resources used by Adminimize
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.5341.82 ▲1.29
Dashboard /wp-admin3.77 ▲0.4348.15 ▼21.40
Posts /wp-admin/edit.php3.85 ▲0.5048.01 ▼1.95
Add New Post /wp-admin/post-new.php6.32 ▲0.4392.56 ▼6.80
Media Library /wp-admin/upload.php3.78 ▲0.5541.16 ▲6.51
Adminimize /wp-admin/options-general.php?page=adminimize-options3.8459.88

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
mw_adminimize
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Adminimize
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.37 ▲0.111.72 ▲0.0236.56 ▼6.36
Dashboard /wp-admin2,199 ▲215.64 ▼0.0792.40 ▼21.9040.22 ▼5.90
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0440.07 ▲2.1336.45 ▼1.06
Add New Post /wp-admin/post-new.php1,529 ▲223.41 ▲0.38624.09 ▲19.6942.62 ▼15.91
Media Library /wp-admin/upload.php1,404 ▲104.20 ▲0.03100.78 ▲3.8141.61 ▼1.46
Adminimize /wp-admin/options-general.php?page=adminimize-options8,5972.5054.11167.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 32× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/adminimize/inc-setup/helping_hands.php
    • > /wp-content/plugins/adminimize/inc-options/im_export_options.php
    • > /wp-content/plugins/adminimize/inc-options/menu_options.php
    • > /wp-content/plugins/adminimize/inc-setup/messages.php
    • > /wp-content/plugins/adminimize/inc-setup/admin-footer.php
    • > /wp-content/plugins/adminimize/inc-options/write_page_options.php
    • > /wp-content/plugins/adminimize/inc-options/theme_options.php
    • > /wp-content/plugins/adminimize/inc-options/self_settings.php
    • > /wp-content/plugins/adminimize/inc-options/minimenu.php
    • > /wp-content/plugins/adminimize/adminimize_page.php

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

adminimize/adminimize.php 85% from 13 tests

"Adminimize" version 1.11.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")
  • Description: The description should be shorter than 140 characters (currently 371 characters long)

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 detected5,733 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
PHP338829465,520
CSS7238110
JavaScript111924103

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions80
▷ Named functions7796.25%
▷ Anonymous functions33.75%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin