73% hellobox

Code Review | HelloBox

WordPress plugin HelloBox scored73%from 54 tests.

About plugin

  • Plugin page: hellobox
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-4.7.4
  • WordPress version: 6.3.1
  • First release: May 17, 2017
  • Latest release: May 17, 2017
  • Number of updates: 15
  • Update frequency: every 0.3 days
  • Top authors: perschmitz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /945 total downloads

Benchmarks

Plugin footprint 65% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.93MB] [CPU: ▼35.65ms] Passed 4 tests

This is a short check of server-side resources used by HelloBox
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.24 ▼1.65
Dashboard /wp-admin3.02 ▼0.2824.63 ▼23.47
Posts /wp-admin/edit.php3.02 ▼0.3423.75 ▼24.38
Add New Post /wp-admin/post-new.php3.02 ▼2.8722.46 ▼80.50
Media Library /wp-admin/upload.php3.02 ▼0.2121.77 ▼14.26

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by HelloBox
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.31 ▼1.071.77 ▲0.0938.51 ▼1.22
Dashboard /wp-admin2,228 ▲425.85 ▼0.0798.64 ▼7.9483.87 ▲42.12
Posts /wp-admin/edit.php2,114 ▲251.99 ▼0.0238.68 ▲1.4334.18 ▲2.20
Add New Post /wp-admin/post-new.php1,545 ▲1218.48 ▼4.70647.26 ▼27.8063.58 ▲1.19
Media Library /wp-admin/upload.php1,404 ▲224.20 ▲0.00117.77 ▲15.9643.61 ▼0.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/hellobox/views/options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hellobox/hellobar.php:163

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (The HelloBox for WordPress interface. A dead simple place to put your HelloBox code.) image required
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

hellobox/hellobar.php 92% from 13 tests

The main PHP file in "HelloBox" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("hellobox.php" instead of "hellobar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin133 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23721133
CSS1030
JavaScript1010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods466.67%
▷ Protected methods00.00%
▷ Private methods233.33%
Functions1
▷ Named functions1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png3.32KB0.73KB▼ 78.00%