10% adminpage-helper

Code Review | Admin Helper

WordPress plugin Admin Helper scored10%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: 6.3.1
  • 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 /1,137 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install 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()

Server metrics [RAM: ▼1.62MB] [CPU: ▼62.24ms] Passed 4 tests

Server-side resources used by Admin Helper
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.38 ▼1.086.55 ▼36.65
Dashboard /wp-admin2.40 ▼0.947.34 ▼65.15
Posts /wp-admin/edit.php2.40 ▼0.957.54 ▼41.97
Add New Post /wp-admin/post-new.php2.40 ▼3.488.62 ▼105.17
Media Library /wp-admin/upload.php2.40 ▼0.838.66 ▼28.13

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Helper
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▼0.362.22 ▲0.5145.67 ▲5.20
Dashboard /wp-admin2,218 ▲385.71 ▲0.0790.86 ▲4.5237.78 ▼2.37
Posts /wp-admin/edit.php2,127 ▲272.45 ▲0.5143.04 ▲2.9333.16 ▼2.65
Add New Post /wp-admin/post-new.php1,548 ▲2223.49 ▲0.45620.78 ▼6.7850.58 ▼12.32
Media Library /wp-admin/upload.php1,421 ▲244.30 ▲0.02104.34 ▼2.8243.24 ▼6.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following 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()
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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 no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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
    • > 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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: admin pages, custom taxonomy, custom media, framework, custom type

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

The main file in "Admin Helper" v. 0.83 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file 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 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! 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

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin