Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.82ms] Passed 4 tests
An overview of server-side resources used by sr-piechart-wp
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.45 ▼0.02 | 26.42 ▼17.62 |
Dashboard /wp-admin | 3.38 ▲0.07 | 49.19 ▼5.16 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 49.87 ▲7.42 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 85.59 ▼4.36 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.13 ▲3.85 |
Add New /wp-admin/post-new.php?post_type=pie_chart | 3.44 | 52.20 |
pie settings /wp-admin/edit.php?post_type=pie_chart&page=piechart-settings | 3.27 | 33.05 |
pie_charts /wp-admin/edit.php?post_type=pie_chart | 3.34 | 34.88 |
pie chart category /wp-admin/edit-tags.php?taxonomy=pie_chart_cat&post_type=pie_chart | 3.29 | 34.32 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
sr-piechart-wp: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲233 | 14.17 ▼0.23 | 5.72 ▲3.61 | 39.29 ▼8.28 |
Dashboard /wp-admin | 2,263 ▲75 | 5.11 ▲0.22 | 111.99 ▲3.93 | 39.43 ▼3.91 |
Posts /wp-admin/edit.php | 2,148 ▲59 | 2.32 ▲0.27 | 41.24 ▲0.90 | 35.53 ▼1.30 |
Add New Post /wp-admin/post-new.php | 1,565 ▲31 | 18.84 ▼4.23 | 631.22 ▼73.77 | 33.56 ▼19.75 |
Media Library /wp-admin/upload.php | 1,445 ▲57 | 4.50 ▲0.29 | 100.92 ▲0.02 | 45.00 ▲1.51 |
Add New /wp-admin/post-new.php?post_type=pie_chart | 2,437 | 7.93 | 188.30 | 72.59 |
pie settings /wp-admin/edit.php?post_type=pie_chart&page=piechart-settings | 1,247 | 2.58 | 51.11 | 27.06 |
pie_charts /wp-admin/edit.php?post_type=pie_chart | 1,126 | 2.25 | 33.86 | 27.44 |
pie chart category /wp-admin/edit-tags.php?taxonomy=pie_chart_cat&post_type=pie_chart | 1,321 | 1.98 | 32.07 | 29.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sr-piechirt-wp/sr-piechirt-wp.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
sr-piechirt-wp/sr-piechirt-wp.php 92% from 13 tests
"sr-piechart-wp" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 434 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected454 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 47 | 18 | 232 |
PHP | 1 | 153 | 36 | 202 |
CSS | 1 | 3 | 0 | 20 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.69MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 94.03KB | 30.11KB | ▼ 67.98% |
screenshot-1.png | 188.97KB | 58.24KB | ▼ 69.18% |
screenshot-5.png | 76.01KB | 36.50KB | ▼ 51.98% |
screenshot-4.png | 172.73KB | 53.15KB | ▼ 69.23% |
screenshot-3.png | 95.70KB | 29.24KB | ▼ 69.44% |