Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼142.51ms] Passed 4 tests
Server-side resources used by Popups by Embedery - A Modern WordPress Popup Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 37.09 ▲14.91 |
Dashboard /wp-admin | 3.07 ▲0.02 | 48.96 ▼3.95 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 47.29 ▲1.34 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 94.27 ▼565.99 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 35.40 ▼1.43 |
Server storage [IO: ▲4.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 70 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Popups by Embedery - A Modern WordPress Popup Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,736 ▲140 | 16.18 ▲0.45 | 9.65 ▼2.51 | 59.19 ▲8.25 |
Dashboard /wp-admin | 3,015 ▲84 | 6.73 ▲0.71 | 151.62 ▼8.05 | 125.61 ▲12.20 |
Posts /wp-admin/edit.php | 2,812 ▲73 | 3.22 ▲0.38 | 72.08 ▼0.03 | 96.75 ▼2.68 |
Add New Post /wp-admin/post-new.php | 1,764 ▲183 | 24.36 ▲4.09 | 379.23 ▼37.47 | 140.07 ▲23.45 |
Media Library /wp-admin/upload.php | 1,806 ▼1 | 5.39 ▲0.37 | 145.21 ▼37.97 | 156.01 ▲29.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/embedery-integrate/admin/partials/embedery-admin-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/embedery-integrate/public/partials/embedery-public-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/embedery-integrate/trunk/public/partials/embedery-public-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/embedery-integrate/trunk/admin/partials/embedery-admin-display.php:15
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 64 tag instead of maximum 10
- Screenshots: These screenshots require images: #4 (Tons of templates to get you started.), #5 (Using the shortcode.), #6 (Viewing your widgets from the admin with quick links.), #7 (Viewing your widgets from the admin with quick links.)
embedery-integrate/embedery.php 77% from 13 tests
"Popups by Embedery - A Modern WordPress Popup Plugin" version 1.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("embedery-integrate.php" instead of "embedery.php")
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin833 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 177 | 535 | 446 |
CSS | 2 | 36 | 4 | 234 |
JavaScript | 3 | 21 | 5 | 139 |
SVG | 2 | 0 | 0 | 14 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 4 | 6.67% |
▷ Public methods | 48 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 20.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 1.01MB with 0.76MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/story.png | 79.20KB | 23.46KB | ▼ 70.38% |
assets/widget.png | 395.68KB | 106.21KB | ▼ 73.16% |
trunk/assets/graph.png | 41.31KB | 4.30KB | ▼ 89.58% |
trunk/assets/story.png | 79.20KB | 23.46KB | ▼ 70.38% |
trunk/assets/widget.png | 395.68KB | 106.21KB | ▼ 73.16% |