Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼290.90ms] Passed 4 tests
An overview of server-side resources used by HITActivity
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.06 | 56.55 ▲2.36 |
Dashboard /wp-admin | 3.47 ▲0.06 | 32.69 ▼1.06 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 37.10 ▼3.91 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.03 | 96.79 ▼1,153.25 |
Media Library /wp-admin/upload.php | 3.35 ▲0.04 | 26.94 ▼5.38 |
WPDrone /wp-admin/options-general.php?page=wpdrone | 3.39 | 27.16 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wpdrone_hooks_notify_list |
Browser metrics Passed 4 tests
Checking browser requirements for HITActivity
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 16.19 ▲0.24 | 6.03 ▼0.13 | 2.34 ▼0.38 |
Dashboard /wp-admin | 2,897 ▲36 | 5.97 ▼0.19 | 121.05 ▼15.50 | 157.20 ▼2.18 |
Posts /wp-admin/edit.php | 2,693 ▲8 | 3.23 ▼0.00 | 61.06 ▼4.87 | 139.02 ▼7.12 |
Add New Post /wp-admin/post-new.php | 1,714 ▼38 | 21.04 ▲0.02 | 429.19 ▼17.57 | 159.70 ▼4.75 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.50 ▼0.08 | 153.13 ▲11.53 | 188.51 ▼4.83 |
WPDrone /wp-admin/options-general.php?page=wpdrone | 1,542 | 2.49 | 54.23 | 115.79 |
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
- Zombie WordPress options were found after uninstall: 1 option
- wpdrone_hooks_notify_list
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/hitactivity/hitactivity.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hitactivity/views/settings.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hitactivity/notify.php:210
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% 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:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
hitactivity/hitactivity.php Passed 13 tests
"HITActivity" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
42 characters long description:
Monitor all hooks activities in wordpress.
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
Success! There were no dangerous files found in this plugin390 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 92 | 90 | 390 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin