Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▲2.91ms] Passed 4 tests
This is a short check of server-side resources used by ZWP Modal
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 45.15 ▲3.44 |
Dashboard /wp-admin | 3.37 ▲0.07 | 54.17 ▲2.29 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 64.43 ▲11.69 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 104.40 ▲7.81 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.10 ▼1.89 |
ZWP Modal /wp-admin/options-general.php?page=zwp-modal | 3.24 | 30.92 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
ZWP Modal: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 14.47 ▲0.17 | 1.88 ▼0.23 | 45.15 ▲3.06 |
Dashboard /wp-admin | 2,214 ▲26 | 4.87 ▼1.02 | 114.72 ▲5.32 | 41.07 ▼2.79 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.01 ▲0.02 | 39.32 ▲2.87 | 36.79 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,522 ▼6 | 23.53 ▲5.35 | 655.84 ▼26.02 | 51.88 ▼7.66 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.17 ▼0.01 | 96.85 ▼9.34 | 39.98 ▼10.49 |
ZWP Modal /wp-admin/options-general.php?page=zwp-modal | 794 | 2.02 | 23.03 | 24.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=zwp-modal
- > Warning in wp-content/plugins/zwp-modal/admin/class-zwp-modal-admin.php+119
Invalid argument supplied for foreach()
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
Almost there! Just fix the following items
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/zwp-modal/public/partials/zwp-modal-public-display.php:17
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/zwp-modal/public/partials/zwp-modal-js.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/zwp-modal/admin/partials/zwp-modal-autocomplete.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/zwp-modal/admin/partials/zwp-modal-admin-display.php:16
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/zwp-modal/public/partials/zwp-modal-css.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/zwp-modal/admin/partials/zwp-modal-settings.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/zwp-modal/public/partials/zwp-modal-close-button.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== zwp-modal ===
) - Screenshots: These screenshots need descriptions #2, #0 in zwp-modal/assets to your readme.txt
zwp-modal/zwp-modal.php Passed 13 tests
The primary PHP file in "ZWP Modal" version 1.0.0 is used by WordPress to initiate all plugin functionality
36 characters long description:
A pop-up modal plugin for wordpress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin700 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 150 | 500 | 679 |
Markdown | 1 | 11 | 0 | 18 |
JavaScript | 1 | 2 | 27 | 3 |
CSS | 1 | 0 | 4 | 0 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 2.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 23 | 74.19% |
▷ Protected methods | 3 | 9.68% |
▷ Private methods | 5 | 16.13% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.76MB with 0.54MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot_1.png | 585.74KB | 193.96KB | ▼ 66.89% |
assets/settings.png | 191.40KB | 48.01KB | ▼ 74.92% |