Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.53ms] Passed 4 tests
A check of server-side resources used by WP Beautiful Charts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 50.52 ▲9.41 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.90 ▼4.07 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 49.66 ▼3.66 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 91.58 ▼9.09 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.73 ▲2.72 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_wp_beautiful_charts_data |
wp_wp_beautiful_charts |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Beautiful Charts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.01 ▼0.18 | 2.01 ▲0.37 | 41.37 ▼0.51 |
Dashboard /wp-admin | 2,193 ▲13 | 5.56 ▼0.11 | 87.41 ▼8.14 | 77.36 ▲34.00 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.99 ▼0.04 | 33.90 ▼4.75 | 32.29 ▼8.41 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.22 ▲0.20 | 697.08 ▲0.18 | 164.30 ▲110.54 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.22 ▲0.04 | 101.13 ▼7.37 | 77.71 ▲30.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-beautiful-charts/wp-beautiful-charts.php:17
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% 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:
- Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
wp-beautiful-charts/wp-beautiful-charts.php 85% from 13 tests
This is the main PHP file of "WP Beautiful Charts" version 1.25, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Domain Path: Prefix the domain path with a forward slash character ("/")
- Domain Path: Use only dashes and lowercase characters for the domain path ("")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin572 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 724 | 31 | 540 |
CSS | 1 | 5 | 0 | 25 |
JavaScript | 2 | 2 | 9 | 7 |
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.25 |
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 | 6 | |
▷ Named functions | 6 | 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
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/remove.png | 1.27KB | 1.20KB | ▼ 5.76% |
images/edit.png | 0.87KB | 0.87KB | 0.00% |
images/help.png | 2.08KB | 1.69KB | ▼ 19.08% |
images/chart.png | 0.59KB | 0.59KB | 0.00% |
images/fb.png | 1.59KB | 1.00KB | ▼ 37.42% |