Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-includes/class-wp-hook.php+307
Non-static method WPi_DesignerButtonActivation::myplugin_activate() should not be called statically
Server metrics [RAM: ▲0.61MB] [CPU: ▼299.06ms] Passed 4 tests
This is a short check of server-side resources used by WPi Designer Button
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.42 ▲0.90 | 64.46 ▲14.92 |
Dashboard /wp-admin | 4.26 ▲0.85 | 48.53 ▲12.95 |
Posts /wp-admin/edit.php | 4.54 ▲0.90 | 42.02 ▲3.78 |
Add New Post /wp-admin/post-new.php | 6.78 ▼0.19 | 76.00 ▼1,215.83 |
Media Library /wp-admin/upload.php | 4.20 ▲0.90 | 28.17 ▲2.87 |
Share Buttons /wp-admin/edit.php?post_type=wpi_des_but_sb | 4.25 | 34.24 |
Call To Action /wp-admin/edit.php?post_type=wpi_des_but_sli | 4.25 | 29.93 |
Global Settings /wp-admin/admin.php?page=global_settings | 4.16 | 32.42 |
Styles /wp-admin/edit.php?post_type=wpi_des_but_sty | 4.25 | 31.43 |
Twin Buttons /wp-admin/edit.php?post_type=wpi_des_but_tb | 4.25 | 30.15 |
Buttons /wp-admin/edit.php?post_type=wpi_des_but | 4.25 | 41.58 |
Server storage [IO: ▲6.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 272 new files
Database: no new tables, 2 new options
New WordPress options |
---|
designer_button |
widget_wpi_designer_button_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPi Designer Button
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 10,479 ▲6,737 | 18.73 ▲2.91 | 7.65 ▲1.42 | 2.44 ▲0.20 |
Dashboard /wp-admin | 9,515 ▲6,654 | 7.63 ▲1.17 | 169.08 ▲30.43 | 166.18 ▲0.76 |
Posts /wp-admin/edit.php | 2,768 ▲74 | 3.43 ▼0.01 | 68.47 ▲4.62 | 187.85 ▲41.88 |
Add New Post /wp-admin/post-new.php | 1,684 ▲23 | 20.24 ▲3.95 | 413.36 ▼22.26 | 215.70 ▲49.69 |
Media Library /wp-admin/upload.php | 1,781 ▲83 | 5.75 ▲0.04 | 128.80 ▼8.91 | 201.21 ▲13.09 |
Share Buttons /wp-admin/edit.php?post_type=wpi_des_but_sb | 8,004 | 4.86 | 118.55 | 141.86 |
Call To Action /wp-admin/edit.php?post_type=wpi_des_but_sli | 8,027 | 4.97 | 109.36 | 141.61 |
Global Settings /wp-admin/admin.php?page=global_settings | 8,027 | 4.17 | 113.00 | 177.44 |
Styles /wp-admin/edit.php?post_type=wpi_des_but_sty | 8,028 | 4.84 | 111.95 | 174.49 |
Twin Buttons /wp-admin/edit.php?post_type=wpi_des_but_tb | 8,004 | 4.70 | 110.04 | 133.54 |
Buttons /wp-admin/edit.php?post_type=wpi_des_but | 8,040 | 4.85 | 106.16 | 145.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 2 options in the database
- widget_wpi_designer_button_widget
- designer_button
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=global_settings
- > Warning in wp-content/plugins/wpi-designer-button-shortcode/wpi-designer-button-shortcode.php+156
Use of undefined constant VERSION - assumed 'VERSION' (this will throw an Error in a future version of PHP)
SRP 0% 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
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/wpi-designer-button-shortcode/inc/backup/wpi-designer-button-shortcode.php
- > /wp-content/plugins/wpi-designer-button-shortcode/wpi-designer-button-shortcode.php
- > /wp-content/plugins/wpi-designer-button-shortcode/admin.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpi-designer-button-shortcode/pages.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpi-designer-button-shortcode/inc/shareButtons.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpi-designer-button-shortcode/inc/slides.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpi-designer-button-shortcode/inc/smartButtons.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpi-designer-button-shortcode/inc/styles.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpi-designer-button-shortcode/inc/buttons.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpi-designer-button-shortcode/inc/twinButtons.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpi-designer-button-shortcode/inc/caption.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpi-designer-button-shortcode/inc/buttonWidget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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:
- Tags: There are too many tags (26 tag instead of maximum 10)
wpi-designer-button-shortcode/wpi-designer-button-shortcode.php 85% from 13 tests
"WPi Designer Button" version 3.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Domain Path: The domain path folder does not exist ("/locale/")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
There were no executable files found in this plugin22,623 lines of code in 191 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 307 | 86 | 8,187 |
CSS | 9 | 193 | 204 | 7,607 |
PHP | 16 | 281 | 65 | 3,198 |
SVG | 149 | 0 | 150 | 2,516 |
JSON | 1 | 0 | 0 | 634 |
HTML | 1 | 85 | 1 | 342 |
Markdown | 1 | 67 | 0 | 118 |
YAML | 1 | 13 | 23 | 21 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 20.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 172 | |
▷ Static methods | 53 | 30.81% |
▷ Public methods | 172 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.00% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
43 PNG files occupy 2.28MB with 0.76MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/star_rays.png | 223.16KB | 131.70KB | ▼ 40.98% |
images/thumbnails/a5.png | 31.53KB | 26.55KB | ▼ 15.80% |
images/thumbnails/a14.png | 53.99KB | 46.72KB | ▼ 13.48% |
images/blur1.png | 200.96KB | 140.11KB | ▼ 30.28% |
images/bottom_lighting.png | 50.83KB | 17.45KB | ▼ 65.67% |