10% wp-helper

Code Review | WP Helper

WordPress plugin WP Helper scored10%from 54 tests.

About plugin

  • Plugin page: wp-helper
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: May 23, 2013
  • Latest release: May 23, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: lucdecri (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /991 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/wp-helper/helper_adminpanel.php+281
    Declaration of ah_posts_Table::prepare_items($posts) should be compatible with WP_List_Table::prepare_items()

Server metrics [RAM: ▼1.96MB] [CPU: ▼56.40ms] Passed 4 tests

Server-side resources used by WP Helper
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.99 ▼38.03
Dashboard /wp-admin2.05 ▼1.266.02 ▼47.93
Posts /wp-admin/edit.php2.05 ▼1.314.67 ▼43.89
Add New Post /wp-admin/post-new.php2.05 ▼3.844.91 ▼95.75
Media Library /wp-admin/upload.php2.05 ▼1.186.20 ▼29.93

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WP Helper
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5113.05 ▼1.664.37 ▲2.4238.67 ▼6.24
Dashboard /wp-admin2,218 ▲415.76 ▲0.0989.01 ▼3.5336.69 ▼3.38
Posts /wp-admin/edit.php2,123 ▲232.26 ▲0.2536.90 ▼4.7233.73 ▼0.96
Add New Post /wp-admin/post-new.php1,547 ▲1923.13 ▲0.24610.27 ▼7.5869.91 ▼1.79
Media Library /wp-admin/upload.php1,426 ▲324.38 ▲0.07100.27 ▲1.2942.86 ▲1.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/wp-helper/helper_adminpanel.php+281
    Declaration of ah_posts_Table::prepare_items($posts) should be compatible with WP_List_Table::prepare_items()
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-helper/helper_basic.php:553
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-helper/helper_basic.php:553
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-helper/helper_basic.php:553
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-helper/helper_basic.php:553
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-helper/helper_basic.php:553
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-helper/helper_basic.php:553

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: posttype, attachement, framework, plugins

wp-helper/helper_attachment.php 92% from 13 tests

The main PHP script in "WP Helper" version 0.9 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-helper.php" instead of "helper_attachment.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,346 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP63532571,299
JavaScript14224
CSS16123

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.00
▷ Minimum class complexity4.00
▷ Maximum class complexity10.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions66
▷ Named functions66100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin