Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.51ms] Passed 4 tests
A check of server-side resources used by Simple Popup Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.38 ▼0.07 | 25.64 ▼15.08 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.33 ▼2.09 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 43.14 ▼2.07 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 88.11 ▼10.81 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 33.98 ▼0.09 |
Popup Settings /wp-admin/options-general.php?page=simple_popup_manager | 3.20 | 30.53 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Popup Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.33 ▼1.05 | 2.11 ▲0.21 | 46.54 ▼1.55 |
Dashboard /wp-admin | 2,207 ▲22 | 5.81 ▲0.87 | 99.94 ▼0.96 | 40.96 ▼0.66 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.01 ▲0.01 | 35.49 ▲0.56 | 31.82 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,528 ▼14 | 23.37 ▲5.23 | 675.68 ▲20.56 | 56.10 ▼0.18 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.02 | 94.82 ▼0.76 | 44.88 ▼0.99 |
Popup Settings /wp-admin/options-general.php?page=simple_popup_manager | 1,656 | 6.60 | 135.37 | 61.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simple_popup_manager
- > Notice in wp-content/plugins/simple-popup-manager/index.php+79
Undefined index: largeur
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simple_popup_manager
- > Notice in wp-content/plugins/simple-popup-manager/index.php+72
Undefined index: cookie
- > GET request to /wp-admin/options-general.php?page=simple_popup_manager
- > Notice in wp-content/plugins/simple-popup-manager/index.php+81
Undefined index: hauteur
- > GET request to /wp-admin/options-general.php?page=simple_popup_manager
- > Notice in wp-content/plugins/simple-popup-manager/index.php+90
Undefined index: bgcolor
- > GET request to /wp-admin/options-general.php?page=simple_popup_manager
- > Notice in wp-content/plugins/simple-popup-manager/index.php+94
Undefined index: opacite
- > GET request to /wp-admin/options-general.php?page=simple_popup_manager
- > Notice in wp-content/plugins/simple-popup-manager/index.php+101
Undefined index: contenu
SRP 50% 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 take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/simple-popup-manager/index.php:17
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: popup, message, plugin, cookie, jquery...
simple-popup-manager/index.php 92% from 13 tests
"Simple Popup Manager" version 1.3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("simple-popup-manager.php" instead of "index.php")
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
Success! There were no dangerous files found in this plugin423 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 57 | 23 | 190 |
PO File | 2 | 46 | 2 | 112 |
CSS | 3 | 6 | 3 | 64 |
JavaScript | 2 | 11 | 15 | 57 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/spm-close-icon.png | 1.64KB | 1.28KB | ▼ 22.06% |