100% wp-events-hooks-listeners

Code Review | WP Events Hooks Listeners

WordPress plugin WP Events Hooks Listeners scored 100% from 54 tests.

About plugin

  • Plugin page: wp-events-hooks-l...
  • Plugin version: 1.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 5.8.1
  • First release: Oct 26, 2019
  • Latest release: Oct 27, 2019
  • Number of updates: 4
  • Update frequency: every 1.8 days
  • Top authors: shahariadigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 346 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼141.88ms] Passed 4 tests

This is a short check of server-side resources used by WP Events Hooks Listeners
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.95 ▲0.2338.75 ▲13.57
Dashboard /wp-admin3.19 ▲0.1346.70 ▼4.45
Posts /wp-admin/edit.php3.30 ▲0.1946.07 ▲0.50
Add New Post /wp-admin/post-new.php5.55 ▲0.1192.76 ▼564.10
Media Library /wp-admin/upload.php3.13 ▲0.1332.13 ▲0.52

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 1 new option
New WordPress options
wp_actions_on_events_options

Browser metrics Passed 4 tests

A check of browser resources used by WP Events Hooks Listeners
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,699 ▲10315.75 ▼0.147.08 ▼0.5045.87 ▼3.63
Dashboard /wp-admin2,986 ▲525.85 ▼0.16155.18 ▲6.18110.07 ▼10.06
Posts /wp-admin/edit.php2,759 ▲202.69 ▲0.0062.32 ▼0.8497.37 ▲3.51
Add New Post /wp-admin/post-new.php1,685 ▲10418.90 ▼0.30373.23 ▼3.81109.17 ▼4.50
Media Library /wp-admin/upload.php1,827 ▲175.03 ▲0.00141.72 ▼17.63112.26 ▼1.19

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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
8 plugin tags: action, remote, slack, email, external...

wp-events-hooks-listeners/wp-events-hooks-listeners.php 92% from 13 tests

The principal PHP file in "WP Events Hooks Listeners" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 145 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin9,544 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
CSS41,995138,861
PHP11140189575
JavaScript4209558
HTML112849
JSON1001

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.35
Average class complexity12.83
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods44
▷ Static methods1840.91%
▷ Public methods4397.73%
▷ Protected methods00.00%
▷ Private methods12.27%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants7
▷ Global constants7100.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