90% i-need-help

Code Review | I Need Help!

WordPress plugin I Need Help! scored90%from 54 tests.

About plugin

  • Plugin page: i-need-help
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 23, 2021
  • Latest release: Aug 19, 2023
  • Number of updates: 6
  • Update frequency: every 151.2 days
  • Top authors: bhadaway (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /376 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.31ms] Passed 4 tests

This is a short check of server-side resources used by I Need Help!
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.76 ▼11.17
Dashboard /wp-admin3.34 ▼0.0041.72 ▼11.93
Posts /wp-admin/edit.php3.39 ▲0.0448.43 ▲3.58
Add New Post /wp-admin/post-new.php5.92 ▲0.0483.04 ▲0.86
Media Library /wp-admin/upload.php3.26 ▲0.0434.03 ▲0.99
I Need Help! /wp-admin/options-general.php?page=ineedhelp3.2330.04

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for I Need Help!
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲10613.20 ▼1.171.71 ▼0.2447.31 ▲3.26
Dashboard /wp-admin2,234 ▲454.89 ▼0.07106.43 ▼16.4243.17 ▼1.01
Posts /wp-admin/edit.php2,117 ▲312.01 ▼0.0242.94 ▲8.2439.15 ▲6.19
Add New Post /wp-admin/post-new.php1,620 ▲10123.82 ▲0.68625.71 ▼23.7156.99 ▲3.19
Media Library /wp-admin/upload.php1,416 ▲314.28 ▲0.0394.99 ▼6.7743.09 ▼1.68
I Need Help! /wp-admin/options-general.php?page=ineedhelp8602.0224.0532.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: help, webmaster, support, customization, maintenance...

i-need-help/i-need-help.php Passed 13 tests

The entry point to "I Need Help!" version 0.2 is a PHP file that has certain tags in its header comment area
137 characters long description:
From any page on the front-end or back-end of your WordPress-powered site, send out an SOS to your webmaster if you run into any trouble.

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
There were no executable files found in this plugin132 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1725107
CSS16025

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.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin