Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.32MB] [CPU: ▲6.16ms] Passed 4 tests
An overview of server-side resources used by Ninja Charts- WordPress Charts and Graphs Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.78 ▲1.32 | 47.79 ▲8.19 |
Dashboard /wp-admin | 4.62 ▲1.32 | 58.40 ▲13.36 |
Posts /wp-admin/edit.php | 4.68 ▲1.32 | 52.21 ▼1.25 |
Add New Post /wp-admin/post-new.php | 8.32 ▲2.43 | 101.85 ▲8.02 |
Media Library /wp-admin/upload.php | 4.55 ▲1.32 | 43.65 ▲9.67 |
Charts /wp-admin/admin.php?page=ninja-charts | 4.55 | 37.54 |
Server storage [IO: ▲4.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 229 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_ninja_charts |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Ninja Charts- WordPress Charts and Graphs Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲121 | 13.27 ▼1.11 | 4.49 ▲2.84 | 43.21 ▼5.56 |
Dashboard /wp-admin | 2,262 ▲77 | 4.87 ▼0.20 | 115.02 ▲13.96 | 42.78 ▼1.25 |
Posts /wp-admin/edit.php | 2,149 ▲60 | 2.02 ▼0.03 | 36.12 ▼12.71 | 34.80 ▼1.78 |
Add New Post /wp-admin/post-new.php | 6,440 ▲4,906 | 28.19 ▲5.14 | 863.90 ▲223.88 | 53.02 ▲1.84 |
Media Library /wp-admin/upload.php | 1,444 ▲56 | 4.17 ▼0.08 | 106.29 ▲10.86 | 45.92 ▲2.21 |
Get help /wp-admin/admin.php?page=ninja-charts#/support | 1,214 | 5.67 | 230.62 | 39.21 |
Add Chart /wp-admin/admin.php?page=ninja-charts#/add-chart | 1,419 | 7.38 | 213.99 | 42.20 |
Charts /wp-admin/admin.php?page=ninja-charts | 1,163 | 6.15 | 62.53 | 34.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 tables were found after uninstall: 1 table
- wp_ninja_charts
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ninja-charts/app/Views/admin/menu.php
- 77× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'NinjaCharts\\Framework\\Foundation\\ContextualBindingBuilderContract' not found in wp-content/plugins/ninja-charts/vendor/wpfluent/framework/src/WPFluent/Foundation/ContextualBindingBuilder.php:5
- > PHP Fatal error
Uncaught Error: Call to a member function withPolicy() on null in wp-content/plugins/ninja-charts/app/Http/Routes/api.php:8
- > PHP Fatal error
Uncaught Error: Interface 'NinjaCharts\\Framework\\Foundation\\ContainerContract' not found in wp-content/plugins/ninja-charts/vendor/wpfluent/framework/src/WPFluent/Foundation/Container.php:13
- > PHP Fatal error
Uncaught Error: Class 'NinjaCharts\\Framework\\Database\\Orm\\Relations\\HasOneOrMany' not found in wp-content/plugins/ninja-charts/vendor/wpfluent/framework/src/WPFluent/Database/Orm/Relations/HasOne.php:7
- > PHP Fatal error
Uncaught Error: Call to a member function get() on null in wp-content/plugins/ninja-charts/boot/globals.php:11
- > PHP Fatal error
Trait 'NinjaCharts\\Framework\\Support\\MacroableTrait' not found in wp-content/plugins/ninja-charts/vendor/wpfluent/framework/src/WPFluent/Support/Str.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'NinjaCharts\\Framework\\Database\\Orm\\Relations\\Relation' not found in wp-content/plugins/ninja-charts/vendor/wpfluent/framework/src/WPFluent/Database/Orm/Relations/HasOneOrMany.php:10
- > PHP Fatal error
Uncaught Error: Class 'NinjaCharts\\Framework\\Database\\Orm\\Relations\\Relation' not found in wp-content/plugins/ninja-charts/vendor/wpfluent/framework/src/WPFluent/Database/Orm/Relations/BelongsTo.php:10
- > PHP Fatal error
Uncaught Error: Class 'NinjaCharts\\Framework\\Database\\BaseGrammar' not found in wp-content/plugins/ninja-charts/vendor/wpfluent/framework/src/WPFluent/Database/Query/Grammar.php:8
- > PHP Fatal error
Uncaught Error: Class 'NinjaCharts\\Framework\\Foundation\\Policy' not found in wp-content/plugins/ninja-charts/app/Http/Policies/UserPolicy.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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: There are too many tags (36 tag instead of maximum 10)
ninja-charts/plugin.php 92% from 13 tests
The entry point to "Ninja Charts- WordPress Charts and Graphs Plugin" version 3.2.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ninja-charts.php" instead of "plugin.php")
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
Success! There were no dangerous files found in this plugin29,370 lines of code in 187 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 165 | 4,203 | 10,624 | 16,876 |
JavaScript | 12 | 2,427 | 2,326 | 12,303 |
JSON | 4 | 0 | 0 | 185 |
CSS | 4 | 0 | 0 | 4 |
Markdown | 1 | 0 | 0 | 1 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 13.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 187.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 30 | |
Interfaces | 16 | |
Traits | 14 | |
Classes | 111 | |
▷ Abstract classes | 10 | 9.01% |
▷ Concrete classes | 101 | 90.99% |
▷ Final classes | 0 | 0.00% |
Methods | 1,668 | |
▷ Static methods | 208 | 12.47% |
▷ Public methods | 1,336 | 80.10% |
▷ Protected methods | 324 | 19.42% |
▷ Private methods | 8 | 0.48% |
Functions | 112 | |
▷ Named functions | 10 | 8.93% |
▷ Anonymous functions | 102 | 91.07% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/chartjs_combo_chart.png | 4.89KB | 2.56KB | ▼ 47.70% |
assets/images/fluent-crm-logo.png | 3.27KB | 1.64KB | ▼ 49.76% |
assets/images/google_combo_chart.png | 13.56KB | 4.25KB | ▼ 68.66% |
assets/images/icon_small.png | 5.91KB | 3.68KB | ▼ 37.70% |
assets/images/bug.png | 1.92KB | 1.04KB | ▼ 45.72% |