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
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼12.60ms] Passed 4 tests
This is a short check of server-side resources used by Habu Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 28.24 ▼16.05 |
Dashboard /wp-admin | 3.36 ▲0.01 | 49.85 ▼22.99 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 50.25 ▼3.61 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 89.08 ▼7.74 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.89 ▼0.34 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Habu Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲117 | 13.66 ▼0.61 | 8.11 ▲6.28 | 41.72 ▼1.96 |
Dashboard /wp-admin | 2,199 ▲19 | 5.59 ▼0.08 | 89.92 ▼8.55 | 40.76 ▲0.76 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.97 ▼0.04 | 41.68 ▲0.77 | 35.22 ▼6.68 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.20 ▲0.11 | 641.14 ▼52.03 | 60.07 ▲6.93 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.16 ▲0.01 | 98.52 ▼16.59 | 47.27 ▼0.56 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% 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)
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 take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/habu/public/partials/habu-public-display.php
- > /wp-content/plugins/habu/admin/partials/habu-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid URI ("*")
habu/habu.php Passed 13 tests
The principal PHP file in "Habu Plugin" v. 1.0.0 is loaded by WordPress automatically on each request
82 characters long description:
Habu's custom WordPress plugin. Transporting data functionality across your sites.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin225 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 127 | 546 | 219 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected