Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲4.66MB] [CPU: ▼113.24ms] Passed 4 tests
Server-side resources used by PopOverXYZ - Show Light Weight Beautiful Tool Tips On Any Text
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.24 ▲5.52 | 58.89 ▲33.16 |
Dashboard /wp-admin | 8.26 ▲5.21 | 75.08 ▲28.85 |
Posts /wp-admin/edit.php | 8.26 ▲5.16 | 73.54 ▲29.22 |
Add New Post /wp-admin/post-new.php | 8.47 ▲3.03 | 117.93 ▼543.51 |
Media Library /wp-admin/upload.php | 8.26 ▲5.26 | 61.70 ▲32.49 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 8.26 | 55.71 |
Server storage [IO: ▲6.64MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 191 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_gdpr |
fs_active_plugins |
fs_accounts |
fs_debug_mode |
Browser metrics Passed 4 tests
A check of browser resources used by PopOverXYZ - Show Light Weight Beautiful Tool Tips On Any Text
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,855 ▲259 | 16.74 ▲1.10 | 13.05 ▲2.80 | 57.79 ▲5.91 |
Dashboard /wp-admin | 3,034 ▲103 | 5.89 ▼0.26 | 145.23 ▼16.97 | 129.24 ▲14.76 |
Posts /wp-admin/edit.php | 2,805 ▲66 | 2.82 ▲0.13 | 69.60 ▼2.81 | 110.84 ▲5.83 |
Add New Post /wp-admin/post-new.php | 1,714 ▲31 | 18.53 ▲0.12 | 385.97 ▼21.28 | 115.86 ▼2.51 |
Media Library /wp-admin/upload.php | 1,797 ▼10 | 5.00 ▼0.03 | 168.00 ▲19.85 | 145.49 ▲21.69 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 1,500 | 2.24 | 58.03 | 82.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/pop-over-xyz/freemius/includes/class-freemius.php+8552
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 4 options in the database
- fs_gdpr
- fs_debug_mode
- fs_accounts
- fs_active_plugins
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/pop-over-xyz/freemius/templates/ajax-loader.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/pop-over-xyz/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/pop-over-xyz/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/pop-over-xyz/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/pop-over-xyz/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/pop-over-xyz/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/pop-over-xyz/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/pop-over-xyz/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/pop-over-xyz/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: hover over, text notification, tool tip, pop over
pop-over-xyz/popoverxyz.php 92% from 13 tests
"PopOverXYZ - Show Light Weight Beautiful Tool Tips On Any Text" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("pop-over-xyz.php" instead of "popoverxyz.php")
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin51,994 lines of code in 136 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 108 | 7,249 | 16,085 | 30,379 |
CSS | 17 | 1,468 | 41 | 13,022 |
JavaScript | 8 | 2,076 | 1,747 | 7,960 |
JSON | 2 | 0 | 0 | 419 |
Markdown | 1 | 68 | 0 | 214 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,907)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 90.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,907.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 2 | 4.44% |
▷ Concrete classes | 43 | 95.56% |
▷ Final classes | 0 | 0.00% |
Methods | 1,132 | |
▷ Static methods | 173 | 15.28% |
▷ Public methods | 792 | 69.96% |
▷ Protected methods | 15 | 1.33% |
▷ Private methods | 325 | 28.71% |
Functions | 100 | |
▷ Named functions | 100 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 123 | |
▷ Global constants | 98 | 79.67% |
▷ Class constants | 25 | 20.33% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/pop-over.png | 9.16KB | 5.26KB | ▼ 42.58% |
slogo.PNG | 4.70KB | 3.14KB | ▼ 33.03% |
logo.png | 11.33KB | 3.81KB | ▼ 66.36% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |