Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.18MB] [CPU: ▼19.97ms] Passed 4 tests
Analyzing server-side resources used by Smart Popup
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 23.86 ▼13.96 |
Dashboard /wp-admin | 3.45 ▲0.15 | 45.08 ▼6.53 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 49.89 ▲0.47 |
Add New Post /wp-admin/post-new.php | 4.74 ▼1.14 | 42.70 ▼58.41 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 33.86 ▼0.99 |
Smart Popup /wp-admin/edit.php?post_type=wps-popup | 3.42 | 35.08 |
How to Use /wp-admin/edit.php?post_type=wps-popup&page=how_to_use | 3.34 | 30.72 |
Add New /wp-admin/post-new.php?post_type=wps-popup | 3.40 | 38.95 |
Setting /wp-admin/edit.php?post_type=wps-popup&page=global_settings | 3.36 | 31.92 |
Theme /wp-admin/edit.php?post_type=wps-popup&page=theme | 3.34 | 31.63 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 54 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wpsp_active_theme |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
wpsp_global_settings |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Smart Popup
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,989 ▲243 | 14.00 ▼0.38 | 8.45 ▲6.81 | 38.28 ▼4.31 |
Dashboard /wp-admin | 2,263 ▲75 | 5.24 ▼0.66 | 115.92 ▲4.97 | 41.18 ▼6.97 |
Posts /wp-admin/edit.php | 2,136 ▲44 | 2.33 ▲0.32 | 42.01 ▲0.33 | 37.10 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,573 ▲43 | 23.49 ▲5.03 | 651.84 ▲17.01 | 30.16 ▼24.92 |
Media Library /wp-admin/upload.php | 1,449 ▲67 | 4.34 ▲0.19 | 90.96 ▼8.40 | 43.27 ▲0.38 |
Smart Popup /wp-admin/edit.php?post_type=wps-popup | 1,113 | 2.44 | 32.85 | 28.34 |
How to Use /wp-admin/edit.php?post_type=wps-popup&page=how_to_use | 875 | 1.87 | 30.89 | 39.60 |
Add New /wp-admin/post-new.php?post_type=wps-popup | 2,893 | 8.55 | 201.88 | 157.01 |
Setting /wp-admin/edit.php?post_type=wps-popup&page=global_settings | 1,106 | 2.42 | 41.33 | 28.83 |
Theme /wp-admin/edit.php?post_type=wps-popup&page=theme | 944 | 1.97 | 28.59 | 59.74 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- wpsp_active_theme
- can_compress_scripts
- wpsp_global_settings
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 16 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wps-popup
- > Notice in wp-content/plugins/smart-popup/view/admin/template/forms/popup-settings.php+55
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wps-popup&page=global_settings
- > Notice in wp-content/plugins/smart-popup/view/settings.php+72
Undefined index: hide_in_excerpt
- > GET request to /wp-admin/edit.php?post_type=wps-popup&page=global_settings
- > Notice in wp-content/plugins/smart-popup/view/settings.php+99
Undefined index: popup_custom_width
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/smart-popup/view/admin/template/forms/popup-settings.php
- > /wp-content/plugins/smart-popup/view/frontend/popup-type/image.php
- > /wp-content/plugins/smart-popup/view/admin/template/forms/pro.php
- > /wp-content/plugins/smart-popup/view/admin/template/popup_type_select.php
- > /wp-content/plugins/smart-popup/view/admin/template/forms/shortcode.php
- > /wp-content/plugins/smart-popup/view/admin/template/forms/image.php
- 58× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: metadata in wp-content/plugins/smart-popup/view/admin/template/forms/popup-settings.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-popup/smart-popup.php:63
- > PHP Notice
Undefined variable: id in wp-content/plugins/smart-popup/view/frontend/popup.php on line 4
- > PHP Notice
Undefined variable: metadata in wp-content/plugins/smart-popup/view/admin/template/popup_type_select.php on line 30
- > PHP Warning
Use of undefined constant WPSP_URL - assumed 'WPSP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/smart-popup/view/admin/template/popup_type_select.php on line 7
- > PHP Notice
Undefined variable: metadata in wp-content/plugins/smart-popup/view/admin/template/popup_type_select.php on line 17
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/smart-popup/view/frontend/popup.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/smart-popup/view/admin/template/forms/popup-settings.php on line 25
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/smart-popup/view/admin/template/forms/popup-settings.php on line 45
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/smart-popup/view/frontend/popup-type/image.php on line 3
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: modal, popup, video popup, facebook popup, shortcode popup...
smart-popup/smart-popup.php 92% from 13 tests
The principal PHP file in "Smart Popup" v. 1.0.2 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,873 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 293 | 40 | 1,074 |
CSS | 6 | 96 | 8 | 427 |
SVG | 6 | 0 | 6 | 268 |
JavaScript | 1 | 40 | 6 | 104 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 69.00 |
▷ Minimum class complexity | 69.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 1 | 3.23% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.34MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 67.79KB | 17.78KB | ▼ 73.77% |
assets/pro/popupsettings_customize.png | 45.54KB | 11.76KB | ▼ 74.17% |
assets/images/close_black.png | 0.68KB | 0.47KB | ▼ 30.12% |
assets/screenshot-3.png | 41.49KB | 9.46KB | ▼ 77.19% |
assets/screenshot-2.png | 64.21KB | 17.69KB | ▼ 72.46% |