Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.11ms] Passed 4 tests
An overview of server-side resources used by 2kb Performance
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 39.92 ▲0.38 |
Dashboard /wp-admin | 3.39 ▲0.08 | 47.97 ▼5.29 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 50.16 ▲3.00 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 88.56 ▼8.92 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.46 ▼2.61 |
2kb Performance /wp-admin/options-general.php?page=2kb-performance | 3.29 | 31.74 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options |
---|
2kb-performance-cached-js |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
2kb-performance-cached-css |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by 2kb Performance
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.35 ▼0.06 | 1.76 ▼0.19 | 26.34 ▼18.62 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▼0.01 | 89.40 ▼3.07 | 41.40 ▼1.35 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.00 | 35.18 ▼3.50 | 32.31 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.12 ▼0.79 | 597.35 ▼68.36 | 50.50 ▼10.76 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.18 ▼0.08 | 97.98 ▼9.37 | 41.46 ▼4.48 |
2kb Performance /wp-admin/options-general.php?page=2kb-performance | 896 | 2.01 | 30.40 | 27.60 |
Uninstaller [IO: ▲0.25MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/2kb-performance/uninstall.php+19
rmdir(wp-content/uploads/2kb-performance): Directory not empty
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- 2kb-performance-cached-js
- 2kb-performance-cached-css
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/2kb-performance/admin-template.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== 2kb-performance ===
) - Contributors: Plugin contributors not specified
2kb-performance/plugin.php 92% from 13 tests
The principal PHP file in "2kb Performance" v. 1.1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("2kb-performance.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,140 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 205 | 253 | 983 |
Markdown | 1 | 96 | 0 | 157 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 78.50 |
▷ Minimum class complexity | 77.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 55.74% |
▷ Protected methods | 4 | 6.56% |
▷ Private methods | 23 | 37.70% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 3 | 21.43% |
▷ Class constants | 11 | 78.57% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin