Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼141.51ms] Passed 4 tests
Server-side resources used by Digthis Show Action Hook
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 39.07 ▲17.50 |
Dashboard /wp-admin | 3.13 ▲0.07 | 46.02 ▼0.79 |
Posts /wp-admin/edit.php | 3.21 ▲0.10 | 47.07 ▼1.74 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 94.39 ▼569.58 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 40.29 ▲6.07 |
Server storage [IO: ▲0.18MB] [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: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Digthis Show Action Hook
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 5,788 ▲2,192 | 16.75 ▲1.17 | 26.39 ▲17.52 | 55.07 ▲4.44 |
Dashboard /wp-admin | 2,987 ▲53 | 5.91 ▼0.05 | 143.59 ▼17.36 | 119.48 ▲6.98 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.69 ▲0.01 | 73.27 ▲0.25 | 95.32 ▲2.79 |
Add New Post /wp-admin/post-new.php | 1,696 ▲115 | 18.68 ▼1.94 | 400.84 ▼8.18 | 120.58 ▲5.38 |
Media Library /wp-admin/upload.php | 1,827 ▲20 | 5.01 ▼0.01 | 159.36 ▲3.24 | 133.76 ▲4.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/digthis-action-filters/view/front-end.php
- > /wp-content/plugins/digthis-action-filters/view/admin.php
- > /wp-content/plugins/digthis-action-filters/digthis-show-actions-filters.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digthis-action-filters/includes/class-digthis-show-action-filters.php:177
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/digthis-action-filters/view/admin.php on line 12
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/digthis-action-filters/view/front-end.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== digthis-action-filters ===
)
digthis-action-filters/digthis-show-actions-filters.php 85% from 13 tests
The main PHP script in "Digthis Show Action Hook" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("digthis-action-filters.php" instead of "digthis-show-actions-filters.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,232 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 389 | 162 | 1,374 |
PHP | 5 | 106 | 49 | 547 |
CSS | 2 | 35 | 6 | 311 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 12 | 57.14% |
▷ Public methods | 20 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.76% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected