Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲4.63MB] [CPU: ▼271.16ms] Passed 4 tests
An overview of server-side resources used by Performance Kit
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.54 ▲5.03 | 91.15 ▲42.75 |
Dashboard /wp-admin | 8.56 ▲5.16 | 75.01 ▲41.71 |
Posts /wp-admin/edit.php | 8.56 ▲4.92 | 67.58 ▲23.99 |
Add New Post /wp-admin/post-new.php | 10.38 ▲3.41 | 125.98 ▼1,177.01 |
Media Library /wp-admin/upload.php | 8.56 ▲5.27 | 51.12 ▲26.66 |
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius | 8.56 | 54.03 |
Server storage [IO: ▲3.34MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 211 new files
Database: no new tables, 5 new options
New WordPress options |
---|
performance_kit_version |
fs_gdpr |
fs_accounts |
fs_debug_mode |
fs_active_plugins |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Performance Kit
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,850 ▲128 | 16.23 ▲0.45 | 6.05 ▲0.07 | 2.00 ▼0.35 |
Dashboard /wp-admin | 2,956 ▲105 | 6.07 ▼0.13 | 118.60 ▼15.41 | 181.47 ▲22.47 |
Posts /wp-admin/edit.php | 2,752 ▲58 | 3.13 ▼0.11 | 60.57 ▼6.18 | 158.30 ▲11.86 |
Add New Post /wp-admin/post-new.php | 1,800 ▲139 | 20.61 ▲3.55 | 384.51 ▼50.59 | 188.43 ▲35.89 |
Media Library /wp-admin/upload.php | 1,761 ▲63 | 5.72 ▲0.24 | 123.72 ▼12.99 | 219.51 ▲37.96 |
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius | 1,466 | 2.74 | 53.71 | 117.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/performance-kit/freemius/includes/class-freemius.php+8540
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 5 options in the database
- fs_active_plugins
- fs_accounts
- performance_kit_version
- fs_gdpr
- fs_debug_mode
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/performance-kit/freemius/templates/ajax-loader.php
- 23× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/performance-kit/admin/partials/kit-woocommerce.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/performance-kit/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/performance-kit/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/performance-kit/admin/modules/woocommerce-module.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/performance-kit/admin/partials/kit-option.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/performance-kit/admin/partials/performance-kit-admin-display.php:36
- > PHP Fatal error
Uncaught Error: Class 'Performance_Kit_Admin' not found in wp-content/plugins/performance-kit/admin/fields/cdn.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/performance-kit/admin/modules/misc-module.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/performance-kit/admin/modules/wordpress-module.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/performance-kit/admin/fields/settings.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
performance-kit/performance-kit.php Passed 13 tests
This is the main PHP file of "Performance Kit" version 1.0.1, 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:
Cherry on top of your speed optimization process.
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
Good job! No executable or dangerous file extensions detected39,768 lines of code in 163 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 132 | 7,823 | 17,179 | 32,586 |
JSON | 4 | 0 | 0 | 5,872 |
CSS | 12 | 65 | 4 | 420 |
Sass | 1 | 36 | 1 | 389 |
JavaScript | 5 | 54 | 95 | 250 |
Markdown | 1 | 68 | 0 | 214 |
SVG | 8 | 0 | 0 | 37 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,895)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 69.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,895.00 |
Average method complexity | 4.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 1,189 | |
▷ Static methods | 176 | 14.80% |
▷ Public methods | 839 | 70.56% |
▷ Protected methods | 19 | 1.60% |
▷ Private methods | 331 | 27.84% |
Functions | 146 | |
▷ Named functions | 145 | 99.32% |
▷ Anonymous functions | 1 | 0.68% |
Constants | 130 | |
▷ Global constants | 104 | 80.00% |
▷ Class constants | 26 | 20.00% |
▷ Public constants | 26 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up 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/performance-kit.png | 4.27KB | 2.06KB | ▼ 51.73% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |