84% ah-o2

Code Review | AH-O₂

WordPress plugin AH-O₂ scored84%from 54 tests.

About plugin

  • Plugin page: ah-o2
  • Plugin version: 0.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.0
  • WordPress version: 6.3.1
  • First release: Jan 8, 2014
  • Latest release: Nov 23, 2015
  • Number of updates: 13
  • Update frequency: every 52.5 days
  • Top authors: jazzs3quence (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,692 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
Install script ran successfully

Server metrics [RAM: ▼0.06MB] [CPU: ▼15.85ms] Passed 4 tests

This is a short check of server-side resources used by AH-O₂
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1640.85 ▼2.84
Dashboard /wp-admin3.26 ▼0.0433.83 ▼18.06
Posts /wp-admin/edit.php3.41 ▲0.0539.07 ▼14.21
Add New Post /wp-admin/post-new.php5.58 ▼0.3076.43 ▼27.13
Media Library /wp-admin/upload.php3.29 ▲0.0631.48 ▼3.98

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for AH-O₂
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲18213.51 ▼0.738.42 ▲6.6439.77 ▼2.51
Dashboard /wp-admin2,266 ▲924.79 ▼0.83100.56 ▲12.5643.11 ▼1.11
Posts /wp-admin/edit.php2,136 ▲332.32 ▲0.3341.84 ▲0.1535.78 ▼0.29
Add New Post /wp-admin/post-new.php622 ▼9091.96 ▼21.2730.91 ▼654.536.07 ▼48.52
Media Library /wp-admin/upload.php1,456 ▲534.26 ▲0.03139.77 ▲38.7745.58 ▼0.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

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)
Everything seems fine, however this is by no means 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
  • 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_help_tab() on null in wp-content/plugins/ah-o2/docs/plugins.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ah-o2/docs/plugins-tips.php:3
    • > PHP Warning
      Creating default object from empty value in wp-content/plugins/ah-o2/docs/themes.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ah-o2/docs/global-tips.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ah-o2/docs/edit-post-tips.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ah-o2/docs/user-edit-tips.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ah-o2/docs/user-tips.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ah-o2/docs/users-tips.php:3
    • > PHP Notice
      Undefined variable: current_screen in wp-content/plugins/ah-o2/docs/plugins.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ah-o2/docs/plugin-install-tips.php:3

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: admin help, wordpress 40, wordpress help, help

ah-o2/ah-o2.php Passed 13 tests

The principal PHP file in "AH-O₂" v. 0.6.2 is loaded by WordPress automatically on each request
96 characters long description:
Breathing new life into help in the WordPress admin. A feature plugin intended for WordPress 4.0

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,069 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript152789988
PHP17221662891
CSS2274164
JSON10023
Markdown1103

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity48.33
▷ Minimum class complexity11.00
▷ Maximum class complexity119.00
Average method complexity3.90
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods49
▷ Static methods918.37%
▷ Public methods4285.71%
▷ Protected methods24.08%
▷ Private methods510.20%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected