Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼152.44ms] Passed 4 tests
Analyzing server-side resources used by Perform
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 42.68 ▲20.58 |
Dashboard /wp-admin | 3.20 ▲0.15 | 54.86 ▼12.91 |
Posts /wp-admin/edit.php | 3.29 ▲0.18 | 53.54 ▼15.22 |
Add New Post /wp-admin/post-new.php | 5.56 ▲0.13 | 101.72 ▼579.27 |
Media Library /wp-admin/upload.php | 3.15 ▲0.14 | 36.75 ▼2.37 |
Perform /wp-admin/options-general.php?page=perform | 3.11 | 33.90 |
Server storage [IO: ▲0.31MB] [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: 46 new files
Database: no new tables, 4 new options
New WordPress options |
---|
perform_common |
perform_cdn |
perform_advanced |
perform_ssl |
Browser metrics Passed 4 tests
An overview of browser requirements for Perform
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.30 ▲0.73 | 9.74 ▼1.27 | 53.86 ▼0.85 |
Dashboard /wp-admin | 2,977 ▲43 | 5.90 ▼0.08 | 150.28 ▼60.75 | 120.98 ▼61.36 |
Posts /wp-admin/edit.php | 2,752 ▲13 | 2.71 ▲0.00 | 79.90 ▼8.04 | 91.05 ▼23.85 |
Add New Post /wp-admin/post-new.php | 1,688 ▲107 | 17.96 ▼0.61 | 426.75 ▲10.41 | 118.55 ▼2.46 |
Media Library /wp-admin/upload.php | 1,814 ▲7 | 5.03 ▼0.03 | 182.58 ▲15.33 | 126.17 ▼2.31 |
Perform /wp-admin/options-general.php?page=perform | 1,495 | 2.09 | 67.04 | 85.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 4 options in the database
- perform_ssl
- perform_cdn
- perform_common
- perform_advanced
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: assets manager, disable embeds, performance, disable emoji, scripts manager...
perform/perform.php Passed 13 tests
"Perform" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
88 characters long description:
This plugin adds toolset for performance and speed improvements to your WordPress sites.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected4,628 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 1,075 | 2,166 | 4,421 |
JSON | 1 | 0 | 0 | 199 |
CSS | 4 | 0 | 0 | 4 |
SVG | 3 | 0 | 0 | 3 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 25.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 1 | 4.55% |
Methods | 228 | |
▷ Static methods | 22 | 9.65% |
▷ Public methods | 193 | 84.65% |
▷ Protected methods | 6 | 2.63% |
▷ Private methods | 29 | 12.72% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dist/images/perform-retina-logo.png | 2.02KB | 2.02KB | 0.00% |