Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.19ms] Passed 4 tests
Server-side resources used by KPIS CTA Buttons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.56 ▲3.67 |
Dashboard /wp-admin | 3.35 ▲0.00 | 52.55 ▼11.34 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 52.47 ▼6.73 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 89.12 ▼8.79 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.48 ▲2.09 |
Server storage [IO: ▲3.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 181 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by KPIS CTA Buttons
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲44 | 14.74 ▲0.53 | 1.85 ▼0.13 | 43.87 ▲5.02 |
Dashboard /wp-admin | 2,207 ▲19 | 5.04 ▼0.80 | 116.74 ▲13.88 | 75.61 ▲32.00 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 1.98 ▼0.05 | 35.68 ▼4.96 | 35.19 ▼1.51 |
Add New Post /wp-admin/post-new.php | 1,531 ▲17 | 23.25 ▲5.72 | 747.51 ▲66.97 | 54.18 ▼14.52 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.23 ▲0.08 | 115.70 ▲12.14 | 77.59 ▲26.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- 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
Good news, no errors were detected
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #5 is missing in kpis-cta-buttons/assets to your readme.txt
kpis-cta-buttons/kpis-cta.php 92% from 13 tests
The main PHP script in "KPIS CTA Buttons" version 2.0.2 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("kpis-cta-buttons.php" instead of "kpis-cta.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin31,945 lines of code in 135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 112 | 7,420 | 16,386 | 31,277 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 3 | 34 | 59 | 194 |
PO File | 2 | 56 | 59 | 156 |
CSS | 13 | 0 | 0 | 74 |
JSON | 1 | 0 | 0 | 27 |
SVG | 3 | 0 | 0 | 3 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,079)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 94.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,079.00 |
Average method complexity | 4.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 2 | 4.44% |
▷ Concrete classes | 43 | 95.56% |
▷ Final classes | 0 | 0.00% |
Methods | 1,168 | |
▷ Static methods | 192 | 16.44% |
▷ Public methods | 804 | 68.84% |
▷ Protected methods | 15 | 1.28% |
▷ Private methods | 349 | 29.88% |
Functions | 97 | |
▷ Named functions | 97 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 134 | |
▷ Global constants | 102 | 76.12% |
▷ Class constants | 32 | 23.88% |
▷ Public constants | 32 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/images/icono_wp_17x17.png | 0.61KB | 0.63KB | 0.00% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |