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.06MB] [CPU: ▼0.12ms] Passed 4 tests
An overview of server-side resources used by RS Custom Popup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 43.78 ▲0.09 |
Dashboard /wp-admin | 3.36 ▲0.06 | 60.05 ▲8.26 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 50.39 ▲1.31 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 93.00 ▼3.60 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.24 ▲1.72 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 55 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_rs_custom_popup |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
rscustompopup_db_version |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by RS Custom Popup
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲129 | 13.47 ▼0.80 | 9.52 ▲7.47 | 41.94 ▲0.82 |
Dashboard /wp-admin | 2,195 ▲15 | 5.55 ▼0.10 | 96.58 ▲11.74 | 85.17 ▲42.22 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 1.98 ▼0.02 | 38.88 ▲2.42 | 34.60 ▼2.40 |
Add New Post /wp-admin/post-new.php | 1,692 ▲157 | 22.35 ▲4.20 | 727.18 ▲98.60 | 47.02 ▼18.88 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.12 ▼0.08 | 105.67 ▼1.59 | 81.63 ▲34.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
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 no errors were found, this is by no means an exhaustive test
SRP 50% 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 fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/rs-custom-popup/admin/views/admin.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/rs-custom-popup/public/views/public.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Contributors: Contributors not specified
rs-custom-popup/rs-custom-popup.php Passed 13 tests
This is the main PHP file of "RS Custom Popup" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
49 characters long description:
A plugin that allows you to create your own popup
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,180 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 24 | 19 | 620 |
PHP | 9 | 109 | 88 | 390 |
CSS | 3 | 0 | 2 | 170 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 8 | 22.86% |
▷ Public methods | 29 | 82.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 17.14% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
24 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/custom_hsb_h.png | 0.95KB | 0.73KB | ▼ 23.40% |
admin/assets/images/custom_rgb_r.png | 0.99KB | 0.74KB | ▼ 25.34% |
admin/assets/images/custom_rgb_g.png | 1.04KB | 0.80KB | ▼ 23.67% |
admin/assets/images/select.png | 0.49KB | 0.33KB | ▼ 33.40% |
admin/assets/images/custom_hsb_s.png | 1.14KB | 0.89KB | ▼ 21.75% |