Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.33ms] Passed 4 tests
A check of server-side resources used by MaxiCharts D3js
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.05 | 24.57 ▼13.65 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.05 ▼7.61 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.34 ▲5.90 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 97.92 ▲1.16 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 31.35 ▼1.22 |
All Network Nodes /wp-admin/edit.php?post_type=mchartsn_node | 3.31 | 34.29 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=mchartsn_node | 3.26 | 33.25 |
Add New /wp-admin/post-new.php?post_type=mchartsn_node | 3.48 | 57.92 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=mchartsn_node | 3.26 | 36.44 |
Server storage [IO: ▲5.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 970 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
category_children |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
MaxiCharts D3js: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,500 ▼235 | 13.29 ▼1.38 | 0.68 ▼1.22 | 18.19 ▼26.55 |
Dashboard /wp-admin | 2,241 ▲53 | 4.82 ▼0.05 | 107.54 ▼8.67 | 40.88 ▼5.74 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.11 ▲0.12 | 42.10 ▲6.65 | 32.17 ▼0.21 |
Add New Post /wp-admin/post-new.php | 1,543 ▼0 | 17.68 ▼0.53 | 645.87 ▼6.12 | 61.80 ▲15.44 |
Media Library /wp-admin/upload.php | 1,423 ▲41 | 4.29 ▲0.10 | 94.23 ▼5.55 | 42.31 ▼0.92 |
All Network Nodes /wp-admin/edit.php?post_type=mchartsn_node | 1,176 | 2.01 | 30.24 | 29.68 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=mchartsn_node | 1,342 | 2.13 | 27.12 | 28.48 |
Add New /wp-admin/post-new.php?post_type=mchartsn_node | 2,733 | 7.94 | 173.01 | 67.26 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=mchartsn_node | 1,478 | 2.14 | 27.25 | 30.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- category_children
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'BlueM\\Tree\\Serializer\\TreeJsonSerializerInterface' not found in wp-content/plugins/maxicharts-d3js-add-on/libs/vendor/bluem/tree/src/Tree/Serializer/FlatTreeJsonSerializer.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/maxicharts-d3js-add-on/libs/vendor/bluem/tree/tests/TreeTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/maxicharts-d3js-add-on/libs/vendor/bluem/tree/tests/Tree/Serializer/HierarchicalTreeJsonSerializerTest.php:16
- > PHP Fatal error
Uncaught Error: Interface 'BlueM\\Tree\\Serializer\\TreeJsonSerializerInterface' not found in wp-content/plugins/maxicharts-d3js-add-on/libs/vendor/bluem/tree/src/Tree/Serializer/HierarchicalTreeJsonSerializer.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/maxicharts-d3js-add-on/libs/vendor/bluem/tree/tests/Tree/NodeTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/maxicharts-d3js-add-on/libs/vendor/bluem/tree/tests/Tree/Serializer/FlatTreeJsonSerializerTest.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues 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
7 plugin tags: documents, js, driven, d3, maxicharts...
maxicharts-d3js-add-on/maxicharts-d3js.php 92% from 13 tests
"MaxiCharts D3js" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("maxicharts-d3js-add-on.php" instead of "maxicharts-d3js.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
Everything looks great! No dangerous files found in this plugin71,066 lines of code in 822 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 617 | 9,362 | 2,711 | 53,373 |
Markdown | 43 | 4,949 | 0 | 9,098 |
JSON | 137 | 0 | 0 | 6,495 |
PHP | 19 | 456 | 956 | 1,876 |
CSS | 1 | 21 | 10 | 81 |
TypeScript | 2 | 38 | 226 | 70 |
Bourne Again Shell | 1 | 5 | 0 | 48 |
XML | 1 | 0 | 2 | 15 |
YAML | 1 | 3 | 1 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 10.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 151 | |
▷ Static methods | 5 | 3.31% |
▷ Public methods | 138 | 91.39% |
▷ Protected methods | 5 | 3.31% |
▷ Private methods | 8 | 5.30% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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
No PNG files were detected