Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼147.71ms] Passed 4 tests
This is a short check of server-side resources used by MobiPromo
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▲0.02 | 26.54 ▲5.45 |
Dashboard /wp-admin | 3.08 ▲0.02 | 46.93 ▼2.46 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 47.98 ▲2.97 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 90.39 ▼593.33 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 35.93 ▲1.98 |
MobiPromo /wp-admin/options-general.php?page=mobipromo-settings | 2.97 | 29.96 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
MobiPromo: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.86 ▲0.23 | 10.44 ▼0.03 | 47.66 ▼3.06 |
Dashboard /wp-admin | 2,975 ▲38 | 5.91 ▼0.12 | 147.32 ▲0.24 | 113.84 ▲5.74 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▼0.02 | 71.45 ▲6.53 | 90.55 ▲2.30 |
Add New Post /wp-admin/post-new.php | 1,673 ▲92 | 19.12 ▼1.18 | 406.98 ▼57.88 | 107.50 ▼15.27 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.02 ▼0.00 | 161.04 ▼7.60 | 120.27 ▲1.53 |
MobiPromo /wp-admin/options-general.php?page=mobipromo-settings | 1,118 | 2.10 | 55.92 | 83.74 |
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 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=mobipromo-settings
- > Notice in wp-content/plugins/mobipromo/admin.php+40
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/mobipromo/mobipromo.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobipromo/admin.php:4
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (MobiPromo settings (where you set your website verification key)) image missing
mobipromo/mobipromo.php 92% from 13 tests
"MobiPromo" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 152 characters long)
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
No dangerous file extensions were detected85 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 25 | 29 | 85 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.07MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 70.16KB | 74.86KB | 0.00% |