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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.51ms] Passed 4 tests
This is a short check of server-side resources used by WP Charts and Graphs - WordPress Chart Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 41.33 ▼0.75 |
Dashboard /wp-admin | 3.38 ▲0.03 | 49.16 ▼13.15 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.28 ▼2.75 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 90.26 ▼1.98 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.17 ▼4.15 |
Generate Chart /wp-admin/admin.php?page=pantherius_wp_charts | 3.28 | 31.60 |
Settings /wp-admin/admin.php?page=pantherius_wp_charts_settings | 3.27 | 32.39 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
wpcag_ltime |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Charts and Graphs - WordPress Chart Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲141 | 14.14 ▼0.08 | 12.96 ▲11.11 | 44.01 ▼3.55 |
Dashboard /wp-admin | 2,215 ▲35 | 5.62 ▼0.06 | 105.83 ▲6.99 | 42.78 ▼2.79 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 1.95 ▼0.06 | 41.26 ▲2.45 | 36.51 ▲0.21 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.07 ▲2.02 | 606.81 ▼95.09 | 56.05 ▲2.16 |
Media Library /wp-admin/upload.php | 1,420 ▲23 | 4.19 ▼0.01 | 97.21 ▼17.59 | 41.20 ▼9.39 |
Generate Chart /wp-admin/admin.php?page=pantherius_wp_charts | 1,014 | 2.54 | 41.42 | 62.29 |
Settings /wp-admin/admin.php?page=pantherius_wp_charts_settings | 897 | 2.55 | 41.61 | 35.49 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=pantherius_wp_charts_settings
- > Warning in wp-admin/includes/template.php+1771
call_user_func() expects parameter 1 to be a valid callback, class 'pantherius_wp_charts_settings' does not have a method 'settings_section_pantherius_wp_charts'
SRP 0% 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× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-charts-and-graphs/templates/sidebar.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-charts-and-graphs/templates/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-charts-and-graphs/templates/options.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pantherius_wp_charts_settings
- > Rendering (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1 The specified value "!" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
wp-charts-and-graphs/wp-charts-and-graphs.php Passed 13 tests
"WP Charts and Graphs - WordPress Chart Plugin" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
33 characters long description:
Add custom charts to your website
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
No dangerous file extensions were detected2,945 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 277 | 177 | 2,141 |
CSS | 2 | 58 | 22 | 502 |
PHP | 5 | 32 | 60 | 302 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 4 | 22.22% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin