83% helpr-agent

Code Review | Helpr Agent - the proper solution for your issues

WordPress plugin Helpr Agent - the proper solution for your issues scored 83% from 54 tests.

About plugin

  • Plugin page: helpr-agent
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 29, 2018
  • Latest release: Aug 30, 2018
  • Number of updates: 26
  • Update frequency: every 0.0 days
  • Top authors: dragosariton (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 535 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Helpr Agent - the proper solution for your issues
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.27 ▼1.29
Dashboard /wp-admin3.33 ▲0.0345.34 ▼3.55
Posts /wp-admin/edit.php3.38 ▲0.0250.56 ▲6.31
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.36 ▼13.08
Media Library /wp-admin/upload.php3.25 ▲0.0237.88 ▲5.43
Helpr Agent /wp-admin/options-general.php?page=helpr_agent_settings3.2230.69

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Helpr Agent - the proper solution for your issues
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲12313.22 ▼0.081.72 ▼4.2843.10 ▼3.66
Dashboard /wp-admin2,264 ▲764.94 ▼0.85109.01 ▼7.5068.38 ▲24.77
Posts /wp-admin/edit.php2,109 ▲172.03 ▼0.0037.76 ▲0.4334.23 ▼0.33
Add New Post /wp-admin/post-new.php1,534 ▲122.96 ▲0.04669.56 ▲90.2964.49 ▲3.22
Media Library /wp-admin/upload.php1,402 ▲144.16 ▼0.06111.49 ▲14.7144.15 ▲2.05
Helpr Agent /wp-admin/options-general.php?page=helpr_agent_settings8762.0725.5628.20

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • helpr_agent_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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 is_admin() in wp-content/plugins/helpr-agent/helpr_agent_settings.php:226
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/helpr-agent/helpr-agent.php:13

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
Please take inspiration from this readme.txt

helpr-agent/helpr-agent.php 85% from 13 tests

The primary PHP file in "Helpr Agent - the proper solution for your issues" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Please keep the plugin description shorter than 140 characters (currently 165 characters long)

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
Everything looks great! No dangerous files found in this plugin548 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP28371399
CSS23221126
JavaScript12323

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity21.00
▷ Minimum class complexity10.00
▷ Maximum class complexity32.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods1244.44%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/jqueryui/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%
lib/jqueryui/images/ui-bg_glass_55_fbf9ee_1x400.png0.33KB0.12KB▼ 62.09%
lib/jqueryui/images/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%
lib/jqueryui/images/ui-bg_flat_75_ffffff_40x100.png0.20KB0.08KB▼ 58.17%
lib/jqueryui/images/ui-icons_454545_256x240.png6.83KB4.17KB▼ 38.86%