Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.17ms] Passed 4 tests
This is a short check of server-side resources used by Popup on Click
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.04 ▼0.64 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.21 ▼1.32 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 43.81 ▼2.54 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 81.09 ▼28.19 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.86 ▲1.53 |
Popup on Click /wp-admin/options-general.php?page=popup-on-click | 3.25 | 32.18 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Popup on Click
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲202 | 13.72 ▼0.64 | 13.77 ▲12.03 | 53.12 ▲10.29 |
Dashboard /wp-admin | 2,213 ▲25 | 4.85 ▼0.03 | 100.18 ▼13.23 | 42.52 ▼2.61 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.03 ▼0.12 | 35.75 ▲1.16 | 33.47 ▼2.20 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.12 ▲0.02 | 680.72 ▲25.86 | 51.25 ▲0.07 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.20 ▲0.02 | 107.23 ▲13.27 | 44.93 ▲5.42 |
Popup on Click /wp-admin/options-general.php?page=popup-on-click | 850 | 2.03 | 23.40 | 26.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/popup-on-click/admin/partials/popup-on-click-admin-display.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: bootstrap modal, modal, popup on click, popup, pop-up...
popup-on-click/popup-on-click.php Passed 13 tests
The principal PHP file in "Popup on Click" v. 1.0.0 is loaded by WordPress automatically on each request
105 characters long description:
Plugin provides a possibility to display content in a popup window after user clicks on a triggering link
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
No dangerous file extensions were detected335 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 121 | 359 | 331 |
JavaScript | 1 | 2 | 1 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 2.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 86.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.89% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin