Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.60MB] [CPU: ▼15.92ms] Passed 4 tests
Analyzing server-side resources used by Area Chart
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 42.44 ▲0.42 |
Dashboard /wp-admin | 3.39 ▲0.08 | 49.49 ▲1.73 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 52.29 ▲2.26 |
Add New Post /wp-admin/post-new.php | 3.22 ▼2.66 | 37.06 ▼65.43 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.12 ▼0.41 |
Add New /wp-admin/post-new.php?post_type=wha_areachart | 3.17 | 34.91 |
All Charts /wp-admin/edit.php?post_type=wha_areachart | 3.36 | 37.17 |
Server storage [IO: ▲2.41MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Area Chart
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,169 ▲398 | 15.22 ▲0.61 | 33.93 ▲32.04 | 38.44 ▼3.58 |
Dashboard /wp-admin | 2,227 ▲42 | 5.79 ▼0.09 | 106.46 ▼1.99 | 39.72 ▼3.11 |
Posts /wp-admin/edit.php | 2,113 ▲27 | 2.02 ▲0.03 | 38.92 ▲0.39 | 34.42 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,551 ▲37 | 23.03 ▲5.46 | 666.00 ▼25.14 | 61.24 ▲4.37 |
Media Library /wp-admin/upload.php | 1,418 ▲33 | 4.21 ▼0.01 | 94.27 ▼20.43 | 43.41 ▼5.01 |
Add New /wp-admin/post-new.php?post_type=wha_areachart | 1,964 | 4.66 | 141.86 | 87.97 |
All Charts /wp-admin/edit.php?post_type=wha_areachart | 1,089 | 1.98 | 33.23 | 29.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=wha_areachart
- > Notice in wp-content/plugins/wha-area-charts/wha-area-charts.php+266
Undefined index: myplugin_noncename
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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wha-area-charts/res/admin/area_types/boundaries.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: graph, chart, area, areachart, line
wha-area-charts/wha-area-charts.php 85% from 13 tests
The main file in "Area Chart" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path folder does not exist ("/languages")
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
There were no executable files found in this plugin10,815 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 2,679 |
CSS | 4 | 102 | 176 | 2,641 |
JavaScript | 7 | 407 | 181 | 1,831 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PHP | 3 | 35 | 2 | 138 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 2 | |
▷ Global constants | 2 | 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
5 PNG files occupy 0.72MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
res/image/banner-772x250.png | 181.11KB | 88.34KB | ▼ 51.22% |
res/image/screenshot-1.png | 84.22KB | 38.14KB | ▼ 54.72% |
res/image/screenshot-3.png | 321.45KB | 94.90KB | ▼ 70.48% |
res/image/screenshot-2.png | 139.01KB | 50.40KB | ▼ 63.74% |
res/image/icon-256x256.png | 15.79KB | 5.67KB | ▼ 64.08% |