Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.72ms] Passed 4 tests
Server-side resources used by Onclick Popup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 43.08 ▲3.69 |
Dashboard /wp-admin | 3.37 ▲0.03 | 45.93 ▼15.19 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 47.43 ▲0.80 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 82.15 ▼16.16 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.87 ▲5.47 |
Popup Setting /wp-admin/admin.php?page=onclick-popup | 3.33 | 33.37 |
Content Management /wp-admin/admin.php?page=onclick-popup-content | 3.28 | 35.13 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: 1 new table, 22 new options
New tables |
---|
wp_onclick_popup_plugin |
New WordPress options |
---|
onclickpopup_setting1 |
onclickpopup_setting2_left |
theysaidso_admin_options |
onclickpopup_setting1_left |
onclickpopup_setting5_left |
onclickpopup_setting2 |
onclickpopup_setting1_top |
onclickpopup_setting4 |
onclickpopup_setting3 |
onclickpopup_setting3_left |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Onclick Popup
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.26 ▼0.09 | 1.81 ▲0.10 | 41.79 ▼2.29 |
Dashboard /wp-admin | 2,225 ▲48 | 5.62 ▲0.09 | 82.78 ▼17.17 | 37.04 ▼11.15 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 1.98 ▼0.05 | 33.50 ▼2.45 | 33.93 ▼2.70 |
Add New Post /wp-admin/post-new.php | 1,548 ▲19 | 23.04 ▲0.05 | 679.97 ▲20.20 | 55.10 ▼3.47 |
Media Library /wp-admin/upload.php | 1,424 ▲27 | 4.20 ▲0.05 | 107.04 ▲3.70 | 46.03 ▲1.15 |
Popup Setting /wp-admin/admin.php?page=onclick-popup | 1,025 | 2.03 | 27.93 | 27.60 |
Content Management /wp-admin/admin.php?page=onclick-popup-content | 1,033 | 2.15 | 24.66 | 25.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/onclick-popup/pages/content-management-edit.php
- > /wp-content/plugins/onclick-popup/pages/content-setting.php
- > /wp-content/plugins/onclick-popup/pages/content-management-add.php
- > /wp-content/plugins/onclick-popup/pages/content-management-show.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/onclick-popup/onclick-popup.php:22
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/onclick-popup/onclick-popup.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: widget, popup, onclick, plugin
onclick-popup/onclick-popup.php 92% from 13 tests
The main PHP script in "Onclick Popup" version 7.2 is automatically included on every request by WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 264 characters long)
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
Good job! No executable or dangerous file extensions detected1,268 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 104 | 37 | 869 |
PO File | 2 | 132 | 200 | 299 |
JavaScript | 2 | 15 | 23 | 83 |
CSS | 1 | 3 | 0 | 17 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin