90% support-hero

Code Review | Support Hero

WordPress plugin Support Hero scored90%from 54 tests.

About plugin

  • Plugin page: support-hero
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.5
  • WordPress version: 6.3.1
  • First release: May 7, 2018
  • Latest release: May 9, 2018
  • Number of updates: 10
  • Update frequency: every 0.2 days
  • Top authors: Amgnando (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /836 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.00MB] [CPU: ▼8.45ms] Passed 4 tests

Server-side resources used by Support Hero
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.48 ▼4.68
Dashboard /wp-admin3.32 ▼0.0249.49 ▼16.48
Posts /wp-admin/edit.php3.37 ▲0.0249.77 ▲3.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.18 ▼12.45
Media Library /wp-admin/upload.php3.25 ▲0.0238.87 ▼0.19
Support Hero /wp-admin/options-general.php?page=support-hero3.2433.46

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Support Hero
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.75 ▲0.352.14 ▲0.5441.30 ▲0.25
Dashboard /wp-admin2,210 ▲275.81 ▲0.89105.17 ▼8.6740.54 ▼5.03
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0337.82 ▲0.3632.33 ▼3.40
Add New Post /wp-admin/post-new.php1,536 ▲323.43 ▲0.14682.32 ▼14.7656.45 ▼6.34
Media Library /wp-admin/upload.php1,389 ▲14.29 ▲0.11106.50 ▲2.0446.59 ▲2.34
Support Hero /wp-admin/options-general.php?page=support-hero7982.0327.6429.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: knowledge base, self-help support, support

support-hero/supporthero.php 92% from 13 tests

"Support Hero" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("support-hero.php" instead of "supporthero.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
No dangerous file extensions were detected211 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP650118211

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity6.33
▷ Minimum class complexity5.00
▷ Maximum class complexity8.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1280.00%
▷ Protected methods213.33%
▷ Private methods16.67%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected