Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▲2.20ms] 75% from 4 tests
Server-side resources used by Goo Pie Chart
Please fix the following
- CPU: You should keep total CPU usage under 500.00ms (currently 694.99ms on /wp-admin/admin.php?page=goo-tools-plugin-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.10 | 48.48 ▲6.87 |
Dashboard /wp-admin | 3.68 ▲0.12 | 53.87 ▼1.93 |
Posts /wp-admin/edit.php | 3.79 ▲0.12 | 49.42 ▼3.45 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.11 | 119.49 ▲23.09 |
Media Library /wp-admin/upload.php | 3.60 ▲0.11 | 46.06 ▲7.30 |
Goo Tools Plugins /wp-admin/admin.php?page=goo-tools-plugin-settings | 3.60 | 694.99 |
Goo Pie Chart /wp-admin/admin.php?page=goo-piechart-plugin-settings | 3.57 | 34.01 |
Server storage [IO: ▲0.24MB] [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: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
goopiechart_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Goo Pie Chart
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲113 | 13.41 ▼0.82 | 8.90 ▲7.09 | 43.82 ▲0.34 |
Dashboard /wp-admin | 2,222 ▲42 | 5.65 ▼0.03 | 88.73 ▼2.67 | 41.90 ▲2.66 |
Posts /wp-admin/edit.php | 2,124 ▲21 | 1.99 ▲0.01 | 35.30 ▼4.52 | 34.10 ▼1.06 |
Add New Post /wp-admin/post-new.php | 1,567 ▲41 | 23.11 ▲5.51 | 760.39 ▲100.99 | 55.10 ▼13.99 |
Media Library /wp-admin/upload.php | 1,424 ▲21 | 4.21 ▼0.05 | 109.97 ▲6.57 | 45.92 ▼1.75 |
Goo Tools Plugins /wp-admin/admin.php?page=goo-tools-plugin-settings | 826 | 2.02 | 23.36 | 26.47 |
Goo Pie Chart /wp-admin/admin.php?page=goo-piechart-plugin-settings | 1,246 | 2.03 | 22.48 | 33.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=goo-tools-plugin-settings
- > Warning in wp-content/plugins/goo-pie-chart/goo_tools.php+37
Invalid argument supplied for foreach()
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
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/goo-pie-chart/goo_tools.php
- > /wp-content/plugins/goo-pie-chart/goo-pie-chart.php
- > /wp-content/plugins/goo-pie-chart/admin.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots do not have images: #1 (Plugin settings page), #2 (Pie Chart in action), #3 (v1.1.5 new options)
goo-pie-chart/goo-pie-chart.php Passed 13 tests
The entry point to "Goo Pie Chart" version 1.1.5 is a PHP file that has certain tags in its header comment area
84 characters long description:
Insert animated pie chart graph to your post or page. Boost your data visualisation.
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
There were no executable files found in this plugin990 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 157 | 52 | 639 |
JavaScript | 2 | 93 | 3 | 244 |
CSS | 2 | 18 | 0 | 107 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 61.00 |
▷ Minimum class complexity | 61.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 8.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 62.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 37.50% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.18MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/g_dot.png | 0.18KB | 0.14KB | ▼ 21.69% |
admin/stared_m.png | 9.19KB | 4.00KB | ▼ 56.51% |
screenshot-1.png | 68.26KB | 38.20KB | ▼ 44.05% |
screenshot-3.png | 77.39KB | 43.56KB | ▼ 43.72% |
screenshot-2.png | 21.49KB | 8.38KB | ▼ 61.01% |