Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.30MB] [CPU: ▼0.12ms] Passed 4 tests
Server-side resources used by Advanced Popups
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 45.32 ▲3.28 |
Dashboard /wp-admin | 3.58 ▲0.28 | 53.09 ▲3.40 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 48.85 ▼5.71 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 90.64 ▼1.43 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 38.70 ▲5.49 |
Popups /wp-admin/edit.php?post_type=adp-popup | 3.55 | 39.84 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Advanced Popups: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲123 | 13.48 ▼0.89 | 10.04 ▲8.40 | 40.66 ▼1.43 |
Dashboard /wp-admin | 2,199 ▲25 | 5.56 ▼0.02 | 85.53 ▼1.40 | 39.89 ▲1.13 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.97 ▲0.02 | 35.80 ▼5.68 | 37.64 ▲1.20 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.34 ▲0.14 | 684.51 ▼3.95 | 60.13 ▲2.26 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.22 ▲0.00 | 97.00 ▼11.49 | 43.34 ▼4.81 |
Popups /wp-admin/edit.php?post_type=adp-popup | 1,082 | 2.09 | 31.45 | 30.38 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
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 Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: marketing, popup, popups, advertising, optin
advanced-popups/advanced-popups.php Passed 13 tests
"Advanced Popups" version 1.1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
124 characters long description:
Display high-converting newsletter popups, a cookie notice, or a notification with the light-weight yet feature-rich plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,797 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 296 | 28 | 1,929 |
PHP | 10 | 296 | 491 | 1,227 |
JavaScript | 3 | 248 | 200 | 629 |
SVG | 1 | 0 | 0 | 11 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 24.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 5.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There were not PNG files found in your plugin