Benchmarks
Plugin footprint 65% 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.16MB] [CPU: ▼3.69ms] Passed 4 tests
Server-side resources used by Button Generator - easily Button Builder
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 41.48 ▼1.76 |
Dashboard /wp-admin | 3.46 ▲0.16 | 49.22 ▼9.67 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 47.43 ▼2.06 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 82.97 ▼1.26 |
Media Library /wp-admin/upload.php | 3.39 ▲0.15 | 41.09 ▲9.17 |
Button Generator /wp-admin/admin.php?page=button-generation | 3.47 | 33.87 |
Welcome /wp-admin/admin.php?page=wow-company | 3.35 | 31.70 |
Server storage [IO: ▲3.56MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 106 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_wow_button_generator |
New WordPress options |
---|
wow_button_data |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
wow_button_generator_notice_action |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Button Generator - easily Button Builder
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲71 | 14.46 ▼0.09 | 1.68 ▼0.27 | 44.02 ▲1.99 |
Dashboard /wp-admin | 2,261 ▲87 | 5.62 ▲0.05 | 101.76 ▼0.63 | 42.30 ▼0.82 |
Posts /wp-admin/edit.php | 2,163 ▲63 | 2.00 ▲0.07 | 40.32 ▲3.85 | 32.66 ▼3.78 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.20 ▼0.42 | 676.86 ▲30.89 | 62.42 ▲4.59 |
Media Library /wp-admin/upload.php | 1,466 ▲69 | 4.34 ▲0.16 | 108.50 ▲4.28 | 44.61 ▼0.57 |
Button Generator /wp-admin/admin.php?page=button-generation | 1,142 | 2.17 | 44.14 | 34.11 |
Welcome /wp-admin/admin.php?page=wow-company | 926 | 1.99 | 26.46 | 40.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_wow_button_generator
- Zombie WordPress options detected upon uninstall: 8 options
- wow_button_data
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- wow_button_generator_notice_action
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Button Generator), #2 (Button Style Settings)
button-generation/button-generation.php 92% from 13 tests
Analyzing the main PHP file in "Button Generator - easily Button Builder" version 2.3.8
The following require your attention:
- Text Domain: Please use dashes and lowercase characters for text domains
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
Success! There were no dangerous files found in this plugin21,416 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 12 | 9,464 |
CSS | 15 | 2,833 | 109 | 6,452 |
PHP | 34 | 528 | 787 | 4,693 |
JavaScript | 12 | 144 | 191 | 807 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 17.17 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 2 | 33.33% |
Methods | 52 | |
▷ Static methods | 3 | 5.77% |
▷ Public methods | 48 | 92.31% |
▷ Protected methods | 1 | 1.92% |
▷ Private methods | 3 | 5.77% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 27.22KB | 15.00KB | ▼ 44.87% |
includes/about/image/icon.png | 121.88KB | 28.08KB | ▼ 76.96% |
screenshot-1.png | 17.01KB | 9.86KB | ▼ 42.00% |