10% adminpage-helper

Code Review | Admin Helper

WordPress plugin Admin Helper scored 10% from 54 tests.

About plugin

  • Plugin page: adminpage-helper
  • Plugin version: 0.83
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 5.9.2
  • First release: Oct 15, 2012
  • Latest release: Dec 22, 2012
  • Number of updates: 10
  • Update frequency: every 6.9 days
  • Top authors: lucdecri (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 970 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/adminpage-helper/admin_helper.php+1154
    Declaration of ah_posts_Table::prepare_items($posts) should be compatible with WP_List_Table::prepare_items()

Server metrics [RAM: ▼2.53MB] [CPU: ▼376.80ms] Passed 4 tests

Analyzing server-side resources used by Admin Helper
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.84 ▼1.684.24 ▼46.64
Dashboard /wp-admin1.86 ▼1.553.99 ▼29.18
Posts /wp-admin/edit.php1.86 ▼1.783.24 ▼34.03
Add New Post /wp-admin/post-new.php1.86 ▼5.113.40 ▼1,397.35
Media Library /wp-admin/upload.php1.86 ▼1.443.57 ▼19.66

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Admin Helper
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲3716.50 ▲0.546.53 ▼0.382.35 ▼0.24
Dashboard /wp-admin2,917 ▲596.91 ▲0.79118.39 ▼19.47151.75 ▼10.04
Posts /wp-admin/edit.php2,718 ▲303.30 ▲0.0763.94 ▲1.50141.39 ▼3.63
Add New Post /wp-admin/post-new.php1,684 ▲2316.06 ▼6.58405.07 ▼10.67154.33 ▼2.88
Media Library /wp-admin/upload.php1,722 ▲245.89 ▲0.38127.15 ▼21.62185.17 ▲1.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/adminpage-helper/admin_helper.php+1154
    Declaration of ah_posts_Table::prepare_items($posts) should be compatible with WP_List_Table::prepare_items()

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/adminpage-helper/admin_helper.php on line 1038
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/adminpage-helper/admin_helper.php on line 1038
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/adminpage-helper/admin_helper.php on line 1038

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
5 plugin tags: admin pages, framework, custom media, custom type, custom taxonomy

adminpage-helper/admin_helper.php 92% from 13 tests

"Admin Helper" version 0.83's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("adminpage-helper.php" instead of "admin_helper.php")

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
Success! There were no dangerous files found in this plugin919 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1200171904
CSS15115

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions51
▷ Named functions51100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin