Benchmarks
Plugin footprint Passed 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.01MB] [CPU: ▼294.13ms] Passed 4 tests
A check of server-side resources used by Hopli
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 54.81 ▲1.25 |
Dashboard /wp-admin | 3.43 ▲0.02 | 33.12 ▼1.50 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 38.19 ▲0.23 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 97.81 ▼1,167.01 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 22.96 ▼8.22 |
Hopli /wp-admin/options-general.php?page=hopli | 3.33 | 23.08 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Hopli
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,897 ▲174 | 16.32 ▲0.26 | 15.48 ▲9.14 | 3.51 ▲0.98 |
Dashboard /wp-admin | 2,921 ▲60 | 6.11 ▼0.02 | 119.13 ▼15.50 | 153.90 ▼10.14 |
Posts /wp-admin/edit.php | 2,723 ▲29 | 3.24 ▲0.01 | 65.68 ▲1.38 | 139.90 ▲4.11 |
Add New Post /wp-admin/post-new.php | 1,690 ▼68 | 20.19 ▼1.22 | 398.06 ▼68.14 | 158.53 ▲1.73 |
Media Library /wp-admin/upload.php | 1,727 ▲29 | 5.51 ▼0.00 | 136.85 ▼5.25 | 181.01 ▼9.55 |
Hopli /wp-admin/options-general.php?page=hopli | 1,274 | 5.04 | 114.82 | 127.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests Passed 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 Passed 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
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 Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: checkout, donate, order-received
hopli/hopli.php Passed 13 tests
"Hopli" version 0.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
Allows you to insert the Hopli window to start making donations !
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
Everything looks great! No dangerous files found in this plugin227 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 50 | 107 | 227 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 10.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected