Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.39MB] [CPU: ▼0.84ms] Passed 4 tests
Analyzing server-side resources used by Pimp my Site - Christmas Edition
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 45.47 ▲5.88 |
Dashboard /wp-admin | 3.71 ▲0.40 | 47.91 ▲2.37 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 49.54 ▲1.56 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 93.76 ▼6.09 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 34.99 ▼1.21 |
Pimp my Site - Christmas Edition /wp-admin/options-general.php?page=pimp-my-site | 3.61 | 42.93 |
Server storage [IO: ▲6.67MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 120 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Pimp my Site - Christmas Edition
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲218 | 14.14 ▼0.47 | 18.20 ▲16.43 | 38.03 ▼11.96 |
Dashboard /wp-admin | 2,207 ▲16 | 5.77 ▲0.85 | 95.78 ▼5.62 | 38.33 ▼3.97 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.06 ▲0.01 | 39.86 ▼0.82 | 35.12 ▼0.88 |
Add New Post /wp-admin/post-new.php | 1,535 ▼7 | 23.50 ▲5.38 | 619.27 ▼61.29 | 58.95 ▲10.00 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.08 | 97.73 ▼16.97 | 41.35 ▼7.50 |
Pimp my Site - Christmas Edition /wp-admin/options-general.php?page=pimp-my-site | 14,441 | 3.84 | 113.29 | 115.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in pimp-my-site-christmas-edition/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
pimp-my-site-christmas-edition/pimp-my-site.php 85% from 13 tests
"Pimp my Site - Christmas Edition" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pimp-my-site-christmas-edition.php" instead of "pimp-my-site.php")
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 detected25,791 lines of code in 90 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 15 | 4,500 | 1,202 | 16,907 |
SVG | 58 | 0 | 0 | 4,562 |
CSS | 12 | 463 | 0 | 2,849 |
PHP | 5 | 249 | 306 | 1,473 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 41.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 4.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.69% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cursors/christmas/cursor-5.png | 1.40KB | 1.04KB | ▼ 25.94% |
assets/images/cursors/christmas/cursor-1.png | 1.73KB | 1.46KB | ▼ 15.77% |
assets/images/cursors/christmas/cursor-3.png | 1.94KB | 1.51KB | ▼ 21.95% |
assets/images/cursors/christmas/cursor-2.png | 1.37KB | 1.04KB | ▼ 23.79% |
assets/images/cursors/christmas/cursor-4.png | 1.35KB | 1.10KB | ▼ 18.32% |