Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.32MB] [CPU: ▲32.92ms] 75% from 4 tests
Analyzing server-side resources used by Top Bar - PopUps - by WPOptin
It is recommended to improve the following
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.32MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.90 ▲5.44 | 75.58 ▲31.99 |
Dashboard /wp-admin | 8.92 ▲5.58 | 81.56 ▲20.99 |
Posts /wp-admin/edit.php | 8.92 ▲5.57 | 98.89 ▲54.77 |
Add New Post /wp-admin/post-new.php | 10.57 ▲4.69 | 121.20 ▲29.25 |
Media Library /wp-admin/upload.php | 8.92 ▲5.69 | 79.26 ▲49.46 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.92 | 70.77 |
Server storage [IO: ▲6.18MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 288 new files
Database: no new tables, 13 new options
New WordPress options |
---|
wpoptins_installDate |
db_upgraded |
fs_accounts |
wpop_accounts_tax_children |
wpop_page_id |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
fs_active_plugins |
fs_debug_mode |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Top Bar - PopUps - by WPOptin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲209 | 14.27 ▼0.01 | 44.15 ▲42.54 | 29.69 ▼14.45 |
Dashboard /wp-admin | 2,218 ▲37 | 5.56 ▼0.25 | 95.36 ▼22.47 | 87.23 ▲42.36 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 1.98 ▼0.02 | 39.18 ▲4.08 | 39.17 ▲5.55 |
Add New Post /wp-admin/post-new.php | 1,428 ▼101 | 17.92 ▼5.28 | 737.51 ▲101.23 | 47.26 ▼5.72 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.21 ▲0.01 | 101.36 ▲3.53 | 77.90 ▲38.41 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,103 | 1.80 | 25.96 | 28.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/wpoptin/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 13 options
- fs_accounts
- wpoptins_installDate
- can_compress_scripts
- widget_recent-comments
- fs_debug_mode
- wpoptins_version
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
include(): Failed opening 'wp-content/plugins/wpoptin/frontend/assets/css/wp-load.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wpoptin/frontend/assets/css/wpoptin-customizer-style.css.php on line 7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpoptin/frontend/assets/css/wpoptin-customizer-style.css.php on line 6
- > PHP Warning
include(wp-content/plugins/wpoptin/frontend/assets/css/wp-load.php): failed to open stream: No such file or directory in wp-content/plugins/wpoptin/frontend/assets/css/wpoptin-customizer-style.css.php on line 7
- > PHP Warning
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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots need descriptions #29, #30, #31, #32, #33 in wpoptin/assets to your readme.txt
wpoptin/wpoptin.php 92% from 13 tests
This is the main PHP file of "Top Bar - PopUps - by WPOptin" version 1.2.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 189 characters long)
Code Analysis 97% from 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 detected59,625 lines of code in 224 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 174 | 10,791 | 22,380 | 48,250 |
Sass | 9 | 2,103 | 2 | 5,187 |
JavaScript | 12 | 833 | 314 | 3,289 |
CSS | 21 | 608 | 16 | 1,964 |
SVG | 5 | 5 | 0 | 781 |
Markdown | 3 | 60 | 0 | 154 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 58.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 92 | |
▷ Abstract classes | 2 | 2.17% |
▷ Concrete classes | 90 | 97.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,593 | |
▷ Static methods | 208 | 13.06% |
▷ Public methods | 1,192 | 74.83% |
▷ Protected methods | 19 | 1.19% |
▷ Private methods | 382 | 23.98% |
Functions | 106 | |
▷ Named functions | 106 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 195 | |
▷ Global constants | 138 | 70.77% |
▷ Class constants | 57 | 29.23% |
▷ Public constants | 57 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.17MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wpoptin-dark-gray-logo.png | 2.80KB | 2.65KB | ▼ 5.26% |
assets/images/wpoptin-logo.png | 45.22KB | 48.81KB | 0.00% |
assets/images/wpop-free-graph.png | 68.85KB | 17.76KB | ▼ 74.21% |
assets/images/wpop-gray-logo.png | 2.80KB | 2.65KB | ▼ 5.23% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |