Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼290.54ms] Passed 4 tests
Analyzing server-side resources used by Modal Popup
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.11 | 54.53 ▲2.07 |
Dashboard /wp-admin | 3.49 ▲0.08 | 34.24 ▲0.90 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 39.03 ▲1.21 |
Add New Post /wp-admin/post-new.php | 7.02 ▲0.05 | 94.81 ▼1,166.33 |
Media Library /wp-admin/upload.php | 3.42 ▲0.13 | 26.99 ▲2.11 |
Add New /wp-admin/post-new.php?post_type=psmp_modal | 3.64 | 37.41 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.44 | 23.17 |
Popups /wp-admin/edit.php?post_type=psmp_modal | 3.47 | 24.38 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Modal Popup
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,957 ▲203 | 16.59 ▲1.01 | 9.13 ▲3.39 | 2.70 ▲0.26 |
Dashboard /wp-admin | 2,973 ▲112 | 6.06 ▼0.14 | 118.09 ▼20.14 | 172.80 ▲3.31 |
Posts /wp-admin/edit.php | 2,768 ▲74 | 3.25 ▲0.01 | 66.80 ▲2.72 | 158.35 ▲13.23 |
Add New Post /wp-admin/post-new.php | 1,812 ▲146 | 22.63 ▲2.13 | 430.99 ▲6.09 | 160.03 ▲2.17 |
Media Library /wp-admin/upload.php | 1,786 ▲88 | 5.59 ▲0.09 | 152.03 ▲1.14 | 207.36 ▲11.15 |
Add New /wp-admin/post-new.php?post_type=psmp_modal | 1,948 | 3.92 | 104.00 | 144.12 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,281 | 2.42 | 54.57 | 120.54 |
Popups /wp-admin/edit.php?post_type=psmp_modal | 1,459 | 3.17 | 60.85 | 132.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/modal-popup/inc/cmb2-conditionals/cmb2-conditionals.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/modal-popup/inc/class-tgm-plugin-activation.php:1883
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/modal-popup/inc/class-tgm-plugin-activation.php:1883
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #6 (Finding the shortcode (admin view)) image required
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
modal-popup/modal-popup.php Passed 13 tests
The main PHP script in "Modal Popup" version 1.2.1 is automatically included on every request by WordPress
71 characters long description:
Modal Popup is the easiest and fastest way to add a popup to your site.
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
Good job! No executable or dangerous file extensions detected3,079 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 598 | 1,521 | 2,478 |
CSS | 2 | 91 | 41 | 328 |
JavaScript | 3 | 56 | 27 | 273 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 44.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 4.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 5 | 5.32% |
▷ Public methods | 74 | 78.72% |
▷ Protected methods | 20 | 21.28% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.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
12 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/half_colored_close.png | 1.86KB | 0.75KB | ▼ 59.86% |
img/modern.png | 14.49KB | 5.38KB | ▼ 62.90% |
img/light.png | 9.00KB | 3.95KB | ▼ 56.13% |
img/half_colored.png | 19.04KB | 6.84KB | ▼ 64.08% |
img/full_picture.png | 75.79KB | 26.26KB | ▼ 65.35% |