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
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼2.89ms] Passed 4 tests
A check of server-side resources used by WP Popup
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 43.22 ▼1.71 |
Dashboard /wp-admin | 3.58 ▲0.27 | 47.71 ▼0.42 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 47.16 ▲3.47 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 89.66 ▼12.90 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 41.20 ▲10.67 |
Create New Popup /wp-admin/post-new.php?post_type=wp_popup | 6.31 | 93.28 |
All Popups /wp-admin/edit.php?post_type=wp_popup | 3.55 | 36.89 |
Server storage [IO: ▲3.43MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 386 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
WP Popup: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲205 | 13.82 ▼0.55 | 6.89 ▲4.99 | 37.47 ▼13.85 |
Dashboard /wp-admin | 2,246 ▲55 | 5.88 ▲1.00 | 96.51 ▼8.08 | 36.60 ▼10.52 |
Posts /wp-admin/edit.php | 2,132 ▲40 | 2.10 ▲0.05 | 35.74 ▼6.20 | 31.69 ▼4.81 |
Add New Post /wp-admin/post-new.php | 1,558 ▲17 | 17.80 ▼0.59 | 675.80 ▲55.90 | 36.24 ▼23.75 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 4.32 ▲0.12 | 97.47 ▲5.47 | 43.71 ▲0.32 |
Create New Popup /wp-admin/post-new.php?post_type=wp_popup | 7,482 | 20.72 | 883.21 | 62.50 |
All Popups /wp-admin/edit.php?post_type=wp_popup | 1,109 | 2.07 | 35.73 | 28.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-pop-up/wp-popup.php
- > /wp-content/plugins/wp-pop-up/classes/class-wp-popup-activate.php
- > /wp-content/plugins/wp-pop-up/classes/class-wp-popup.php
- > /wp-content/plugins/wp-pop-up/templates/popup.php
- > /wp-content/plugins/wp-pop-up/classes/class-wp-popup-admin-fields.php
- > /wp-content/plugins/wp-pop-up/classes/class-wp-popup-custom-fields.php
- 41× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wp-pop-up/includes/CMB2/includes/types/CMB2_Type_Multi_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/wp-pop-up/includes/CMB2/includes/CMB2_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/wp-pop-up/includes/CMB2/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/wp-pop-up/includes/CMB2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/wp-pop-up/includes/CMB2/includes/types/CMB2_Type_Text_Time.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/wp-pop-up/includes/CMB2/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/wp-pop-up/includes/CMB2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/wp-pop-up/includes/CMB2/includes/types/CMB2_Type_Wysiwyg.php:16
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/wp-pop-up/includes/CMB2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/wp-pop-up/includes/CMB2/includes/types/CMB2_Type_Select_Timezone.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: modal window, popup, lightbox
wp-pop-up/wp-popup.php 85% from 13 tests
The main PHP file in "WP Popup" ver. 1.2.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-pop-up.php" instead of "wp-popup.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin54,443 lines of code in 237 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 65 | 2,489 | 7,041 | 8,920 |
CSS | 15 | 278 | 1,193 | 4,725 |
JSON | 3 | 0 | 0 | 4,297 |
JavaScript | 13 | 428 | 649 | 1,952 |
Sass | 17 | 306 | 29 | 1,411 |
Markdown | 4 | 269 | 0 | 815 |
PHP code Passed 2 tests
An overview 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.46 |
Average class complexity | 19.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 73 | |
▷ Abstract classes | 9 | 12.33% |
▷ Concrete classes | 64 | 87.67% |
▷ Final classes | 0 | 0.00% |
Methods | 601 | |
▷ Static methods | 98 | 16.31% |
▷ Public methods | 501 | 83.36% |
▷ Protected methods | 89 | 14.81% |
▷ Private methods | 11 | 1.83% |
Functions | 37 | |
▷ Named functions | 36 | 97.30% |
▷ Anonymous functions | 1 | 2.70% |
Constants | 11 | |
▷ Global constants | 4 | 36.36% |
▷ Class constants | 7 | 63.64% |
▷ Public constants | 7 | 100.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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/CMB2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
includes/CMB2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
includes/CMB2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/CMB2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/CMB2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |