83% honrix-addons

Code Review | Honrix Addons

WordPress plugin Honrix Addons scored83%from 54 tests.

About plugin

  • Plugin page: honrix-addons
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 30, 2022
  • Latest release: Oct 8, 2022
  • Number of updates: 5
  • Update frequency: every 1.6 days
  • Top authors: honarsystems (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /192 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

An overview of server-side resources used by Honrix Addons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.00 ▼8.15
Dashboard /wp-admin3.33 ▲0.0344.57 ▼6.32
Posts /wp-admin/edit.php3.38 ▲0.0248.48 ▲2.25
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.00 ▼5.63
Media Library /wp-admin/upload.php3.26 ▲0.0232.92 ▼0.62

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Honrix Addons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲18313.57 ▼0.814.75 ▲2.8740.11 ▼4.75
Dashboard /wp-admin2,212 ▲245.82 ▼0.18100.66 ▼12.8739.59 ▼1.80
Posts /wp-admin/edit.php2,104 ▲182.05 ▲0.0338.51 ▲3.9735.05 ▼1.51
Add New Post /wp-admin/post-new.php1,533 ▲1423.39 ▲0.44658.24 ▼14.8071.17 ▲18.99
Media Library /wp-admin/upload.php1,394 ▲64.18 ▼0.1098.76 ▼1.9643.72 ▼1.87

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/honrix-addons/inc/settings.php:57

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Screenshots: Add descriptions for screenshots #3, #4 in honrix-addons/assets to your readme.txt
  • Requires at least: Invalid plugin version format
Please take inspiration from this readme.txt

honrix-addons/honrix.php 85% from 13 tests

The main PHP script in "Honrix Addons" version 1.0.2 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("honrix-addons.php" instead of "honrix.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,683 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5161171,324
CSS3532284
JavaScript16075

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity6.50
▷ Minimum class complexity2.00
▷ Maximum class complexity14.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2177.78%
▷ Protected methods622.22%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin