Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/my-favorite-cars/my-favorite-cars.php+20
Undefined index: size
Server metrics [RAM: ▼1.97MB] [CPU: ▼60.88ms] Passed 4 tests
Analyzing server-side resources used by My Favorite Car
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.45 ▼38.19 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.48 ▼61.47 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.09 ▼44.63 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.95 ▼99.21 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.88 ▼29.41 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_mfc |
carmusing_activation |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
carmusing_userid |
db_upgraded |
Browser metrics Passed 4 tests
My Favorite Car: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲160 | 13.83 ▼0.73 | 8.78 ▲7.04 | 46.77 ▲7.83 |
Dashboard /wp-admin | 2,221 ▲40 | 5.56 ▼0.10 | 85.52 ▼23.79 | 69.26 ▲25.34 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 1.99 ▼0.01 | 38.13 ▼5.14 | 35.18 ▲0.01 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 18.35 ▼5.29 | 722.08 ▲28.13 | 62.03 ▼6.29 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.22 ▼0.02 | 100.03 ▼11.75 | 73.75 ▲26.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/my-favorite-cars/my-favorite-cars.php+20
Undefined index: size
- Zombie WordPress options were found after uninstall: 9 options
- can_compress_scripts
- carmusing_userid
- carmusing_activation
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_mfc
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/my-favorite-cars/my-favorite-cars.php:62
- > PHP Notice
Undefined index: size in wp-content/plugins/my-favorite-cars/my-favorite-cars.php on line 20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: favorite cars, list, cars, cool cars, used cars
my-favorite-cars/my-favorite-cars.php Passed 13 tests
The main file in "My Favorite Car" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
48 characters long description:
Select and display a list of your favorite cars.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin672 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 126 | 108 | 480 |
CSS | 2 | 22 | 0 | 192 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.50MB with 0.32MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/mfc-icon.png | 1.27KB | 0.48KB | ▼ 62.35% |
images/not-available.png | 4.88KB | 2.74KB | ▼ 43.71% |
screenshot-1.png | 504.34KB | 150.16KB | ▼ 70.23% |
images/arrow.png | 0.99KB | 0.21KB | ▼ 79.19% |