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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▲0.23 | 38.75 ▲13.57 |
Dashboard /wp-admin | 3.19 ▲0.13 | 46.70 ▼4.45 |
Posts /wp-admin/edit.php | 3.30 ▲0.19 | 46.07 ▲0.50 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.11 | 92.76 ▼564.10 |
Media Library /wp-admin/upload.php | 3.13 ▲0.13 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,699 ▲103 | 15.75 ▼0.14 | 7.08 ▼0.50 | 45.87 ▼3.63 |
Dashboard /wp-admin | 2,986 ▲52 | 5.85 ▼0.16 | 155.18 ▲6.18 | 110.07 ▼10.06 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.69 ▲0.00 | 62.32 ▼0.84 | 97.37 ▲3.51 |
Add New Post /wp-admin/post-new.php | 1,685 ▲104 | 18.90 ▼0.30 | 373.23 ▼3.81 | 109.17 ▼4.50 |
Media Library /wp-admin/upload.php | 1,827 ▲17 | 5.03 ▲0.00 | 141.72 ▼17.63 | 112.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 1,995 | 13 | 8,861 |
PHP | 11 | 140 | 189 | 575 |
JavaScript | 4 | 20 | 95 | 58 |
HTML | 1 | 1 | 28 | 49 |
JSON | 1 | 0 | 0 | 1 |
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 code | 0.35 |
Average class complexity | 12.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 18 | 40.91% |
▷ Public methods | 43 | 97.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.27% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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