Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.18MB] [CPU: ▼1.95ms] Passed 4 tests
An overview of server-side resources used by Wordpress chart plugin - ChartPlot
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.18 | 39.11 ▼2.98 |
Dashboard /wp-admin | 3.47 ▲0.17 | 46.45 ▼7.42 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 51.04 ▲3.24 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 95.46 ▼0.65 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 42.08 ▲7.53 |
All Charts /wp-admin/edit.php?post_type=chartplot_chart | 4.61 | 52.40 |
Add New /wp-admin/post-new.php?post_type=chartplot_chart | 3.53 | 53.22 |
Tags /wp-admin/edit-tags.php?taxonomy=chartplot_chart_tags&post_type=chartplot_chart | 3.39 | 35.33 |
Settings /wp-admin/edit.php?post_type=chartplot_chart&page=chartplot_chart_settings | 3.36 | 33.20 |
Categories /wp-admin/edit-tags.php?taxonomy=chartplot_chart_categories&post_type=chartplot_chart | 3.39 | 31.24 |
Server storage [IO: ▲6.96MB] [DB: ▲0.50MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 560 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
chartplot_examples_loaded |
Browser metrics Passed 4 tests
A check of browser resources used by Wordpress chart plugin - ChartPlot
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲124 | 13.21 ▼1.17 | 1.67 ▼0.22 | 39.54 ▼9.20 |
Dashboard /wp-admin | 2,266 ▲78 | 4.87 ▼1.04 | 110.72 ▼1.74 | 43.80 ▼0.52 |
Posts /wp-admin/edit.php | 2,154 ▲65 | 2.03 ▼0.00 | 39.57 ▲5.67 | 35.51 ▲0.21 |
Add New Post /wp-admin/post-new.php | 6,627 ▲5,093 | 25.04 ▲2.05 | 937.91 ▲219.37 | 35.51 ▼17.52 |
Media Library /wp-admin/upload.php | 1,577 ▲189 | 4.54 ▲0.34 | 103.94 ▼11.07 | 42.29 ▼11.34 |
All Charts /wp-admin/edit.php?post_type=chartplot_chart | 2,301 | 2.04 | 38.90 | 32.82 |
Add New /wp-admin/post-new.php?post_type=chartplot_chart | 2,247 | 14.80 | 390.65 | 42.87 |
Tags /wp-admin/edit-tags.php?taxonomy=chartplot_chart_tags&post_type=chartplot_chart | 1,290 | 2.14 | 26.43 | 25.54 |
Settings /wp-admin/edit.php?post_type=chartplot_chart&page=chartplot_chart_settings | 892 | 2.05 | 29.31 | 29.38 |
Categories /wp-admin/edit-tags.php?taxonomy=chartplot_chart_categories&post_type=chartplot_chart | 1,315 | 2.14 | 25.52 | 25.16 |
Uninstaller [IO: ▲0.13MB] [DB: ▲0.50MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- chartplot_examples_loaded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chartplot/php/plugin.php:538
- > 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 93% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
chartplot/index.php 92% from 13 tests
The main file in "Wordpress chart plugin - ChartPlot" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("chartplot.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin66,556 lines of code in 511 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
TypeScript | 390 | 7,366 | 9,011 | 37,172 |
JSON | 7 | 0 | 0 | 19,918 |
Sass | 92 | 1,499 | 1,048 | 6,410 |
CSS | 4 | 195 | 119 | 1,642 |
JavaScript | 13 | 69 | 291 | 541 |
PHP | 2 | 74 | 12 | 494 |
SVG | 2 | 0 | 0 | 373 |
Bourne Shell | 1 | 2 | 1 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
28 PNG files occupy 0.37MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/templates/line.png | 8.72KB | 3.57KB | ▼ 59.11% |
img/templates/area_stacked.png | 7.12KB | 3.39KB | ▼ 52.31% |
img/help/main/editor-full.png | 18.30KB | 8.80KB | ▼ 51.90% |
img/help/main/main-menu-tooltip.png | 17.69KB | 7.97KB | ▼ 54.95% |
img/templates/candle-volume.png | 3.17KB | 1.26KB | ▼ 60.08% |