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.40MB] [CPU: ▼4.14ms] Passed 4 tests
An overview of server-side resources used by Easy Popup Maker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 37.71 ▼4.02 |
Dashboard /wp-admin | 3.69 ▲0.38 | 49.52 ▼1.98 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 47.26 ▼0.12 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 88.43 ▼10.42 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 38.63 ▲2.87 |
update Popup Maker /wp-admin/admin.php?page=CPWPWM_DATA_update | 3.56 | 32.50 |
Server storage [IO: ▲1.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Easy Popup Maker
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲168 | 13.88 ▼0.47 | 7.16 ▲5.56 | 39.27 ▼9.33 |
Dashboard /wp-admin | 2,221 ▲33 | 4.85 ▼1.05 | 101.05 ▼1.91 | 36.61 ▼4.42 |
Posts /wp-admin/edit.php | 2,104 ▲12 | 2.00 ▼0.02 | 36.04 ▼3.25 | 29.75 ▼3.26 |
Add New Post /wp-admin/post-new.php | 1,541 ▲24 | 18.06 ▲0.54 | 594.90 ▼32.40 | 67.71 ▼7.40 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.23 ▲0.05 | 97.06 ▼7.71 | 49.89 ▲4.83 |
update Popup Maker /wp-admin/admin.php?page=CPWPWM_DATA_update | 2,944 | 8.92 | 199.11 | 124.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=CPWPWM_DATA_update
- > Notice in wp-content/plugins/easy-popup-maker/admin/crud.php+753
Undefined index: id
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
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-popup-maker/admin/post_type.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-popup-maker/view.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-popup-maker/popup.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-popup-maker/admin/crud.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Donate link: Please fix this invalid url: ""
- Screenshots: Please add images for these screenshots: #2 (Youtube popup), #3 (Preview page)
easy-popup-maker/popup.php 77% from 13 tests
The entry point to "Easy Popup Maker" version 1.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
- Main file name: The principal plugin file should be the same as the plugin slug ("easy-popup-maker.php" instead of "popup.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,787 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 227 | 47 | 2,075 |
JavaScript | 6 | 121 | 146 | 444 |
CSS | 7 | 21 | 7 | 268 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 156)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 131.00 |
▷ Minimum class complexity | 65.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 13.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 156.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 68.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 31.82% |
Functions | 12 | |
▷ Named functions | 4 | 33.33% |
▷ Anonymous functions | 8 | 66.67% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
14 PNG files occupy 0.42MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/position/middle.png | 15.81KB | 1.51KB | ▼ 90.45% |
assets/img/position/right-bottom.png | 15.46KB | 1.21KB | ▼ 92.18% |
assets/img/position/left-middle.png | 15.70KB | 1.38KB | ▼ 91.19% |
assets/img/position/right-middle.png | 15.62KB | 1.38KB | ▼ 91.20% |
assets/img/blank.png | 75.25KB | 20.90KB | ▼ 72.23% |