Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.03MB] [CPU: ▼7.45ms] Passed 4 tests
A check of server-side resources used by Power Charts - Responsive Beautiful Charts & Graphs
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.93 ▲1.42 |
Dashboard /wp-admin | 3.12 ▼0.19 | 25.55 ▼23.57 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 45.93 ▼1.05 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 94.53 ▲3.99 |
Media Library /wp-admin/upload.php | 3.18 ▼0.04 | 25.23 ▼6.61 |
Help & Info /wp-admin/edit.php?post_type=wpgo_power_charts&page=wpgo-power-charts-about-page | 3.10 | 24.66 |
Add New Chart /wp-admin/post-new.php?post_type=wpgo_power_charts | 3.30 | 39.24 |
All Charts /wp-admin/edit.php?post_type=wpgo_power_charts | 3.23 | 27.95 |
Server storage [IO: ▲0.35MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Power Charts - Responsive Beautiful Charts & Graphs
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲104 | 13.13 ▼1.05 | 1.98 ▼0.18 | 43.21 ▼1.14 |
Dashboard /wp-admin | 2,239 ▲54 | 5.87 ▲0.97 | 108.10 ▼4.26 | 43.39 ▲3.41 |
Posts /wp-admin/edit.php | 2,122 ▲36 | 2.00 ▼0.00 | 39.00 ▲3.57 | 34.91 ▲2.91 |
Add New Post /wp-admin/post-new.php | 1,544 ▲23 | 17.71 ▼5.40 | 636.77 ▼19.95 | 47.88 ▼3.44 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.22 ▲0.02 | 95.12 ▼4.17 | 44.26 ▼1.07 |
Help & Info /wp-admin/edit.php?post_type=wpgo_power_charts&page=wpgo-power-charts-about-page | 923 | 2.02 | 23.78 | 69.89 |
Add New Chart /wp-admin/post-new.php?post_type=wpgo_power_charts | 2,609 | 4.27 | 90.21 | 104.59 |
All Charts /wp-admin/edit.php?post_type=wpgo_power_charts | 1,122 | 2.00 | 32.77 | 30.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wpgo_power_charts
- > Notice in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-enqueue-scripts.php+56
Trying to get property 'ID' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wpgo_power_charts
- > Notice in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-enqueue-scripts.php+65
Trying to get property 'post_type' of non-object
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_1'
- 20 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Notice in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Uninitialized string offset: 0
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_2'
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_3'
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_4'
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_5'
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_6'
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_7'
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_8'
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_9'
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_10'
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_11'
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_12'
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_13'
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_14'
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_15'
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_16'
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_17'
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_18'
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_19'
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+390
Illegal string offset 'wpgo_power_charts_series_color_20'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Warning in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+530
Use of undefined constant uri - assumed 'uri' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpgo_power_charts
- > Notice in wp-content/plugins/wpgo-power-charts-lite/classes/power-charts-cpt.php+583
Undefined variable: w
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 plugin_dir_path() in wp-content/plugins/wpgo-power-charts-lite/power-charts.php:106
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
10 plugin tags: data, column chart, visualisation, responsive, d3...
wpgo-power-charts-lite/power-charts.php 92% from 13 tests
"Power Charts - Responsive Beautiful Charts & Graphs" version 0.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wpgo-power-charts-lite.php" instead of "power-charts.php")
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
Success! There were no dangerous files found in this plugin1,959 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 307 | 566 | 958 |
JavaScript | 9 | 187 | 172 | 728 |
CSS | 4 | 47 | 38 | 187 |
Markdown | 1 | 25 | 0 | 86 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 8.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 3 | 4.92% |
▷ Public methods | 61 | 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 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/alpha-color-picker/transparency-grid.png | 2.58KB | 2.80KB | 0.00% |