Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼1.87ms] Passed 4 tests
An overview of server-side resources used by Ninja Tables - Best Data Table Plugin for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 41.75 ▲2.85 |
Dashboard /wp-admin | 3.58 ▲0.28 | 44.38 ▼3.40 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 44.96 ▼1.02 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.42 | 86.34 ▼5.92 |
Media Library /wp-admin/upload.php | 3.50 ▲0.28 | 33.54 ▲2.99 |
Server storage [IO: ▲7.64MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 320 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_ninja_table_items |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
_ninja_tables_plugin_suggest_dismiss |
_ninja_tables_settings_migration |
widget_theysaidso_widget |
db_upgraded |
_ninja_tables_sorting_migration |
Browser metrics Passed 4 tests
Checking browser requirements for Ninja Tables - Best Data Table Plugin for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲175 | 13.44 ▼0.86 | 1.71 ▲0.05 | 44.61 ▲2.53 |
Dashboard /wp-admin | 2,314 ▲123 | 5.83 ▲0.93 | 100.28 ▲0.73 | 38.26 ▼7.19 |
Posts /wp-admin/edit.php | 2,199 ▲113 | 2.04 ▲0.02 | 33.99 ▼3.17 | 32.92 ▼1.51 |
Add New Post /wp-admin/post-new.php | 6,391 ▲4,856 | 27.79 ▲4.93 | 894.94 ▲228.45 | 39.99 ▼17.16 |
Media Library /wp-admin/upload.php | 1,501 ▲110 | 4.23 ▲0.02 | 95.65 ▼3.64 | 44.05 ▲0.04 |
Charts /wp-admin/admin.php?page=ninja_tables#/charts | 1,946 | 20.78 | 522.97 | 75.35 |
Tables /wp-admin/admin.php?page=ninja_tables#/home | 1,602 | 9.54 | 227.01 | 41.43 |
Tools /wp-admin/admin.php?page=ninja_tables#/tools | 1,743 | 9.72 | 100.30 | 51.66 |
Help /wp-admin/admin.php?page=ninja_tables#/help | 1,730 | 10.10 | 94.89 | 37.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_ninja_table_items
- The uninstall procedure has failed, leaving 9 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- _ninja_tables_plugin_suggest_dismiss
- _ninja_tables_settings_migration
- _ninja_tables_sorting_migration
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ninja-tables/app/Views/admin/menu.php
- 113× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'NinjaTables\\Framework\\Database\\Query\\Grammar' not found in wp-content/plugins/ninja-tables/vendor/wpfluent/framework/src/WPFluent/Database/Query/MySqlGrammar.php:10
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/ninja-tables/app/Services/AjaxInstaller.php on line 6
- > PHP Fatal error
Uncaught Error: Interface 'NinjaTables\\Framework\\Database\\ConnectionResolverInterface' not found in wp-content/plugins/ninja-tables/vendor/wpfluent/framework/src/WPFluent/Database/ConnectionResolver.php:8
- > PHP Fatal error
Uncaught Error: Class 'NinjaTables\\Framework\\Database\\Orm\\Relations\\Relation' not found in wp-content/plugins/ninja-tables/vendor/wpfluent/framework/src/WPFluent/Database/Orm/Relations/BelongsTo.php:10
- > PHP Fatal error
Uncaught Error: Class 'NinjaTables\\Framework\\Database\\Query\\Expression' not found in wp-content/plugins/ninja-tables/vendor/wpfluent/framework/src/WPFluent/Database/Query/JsonExpression.php:8
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/ninja-tables/app/Services/PluginInstaller.php on line 8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ninja-tables/app/Services/AutomaticUpgrader.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'NinjaTables\\Framework\\Database\\BaseGrammar' not found in wp-content/plugins/ninja-tables/vendor/wpfluent/framework/src/WPFluent/Database/Query/Grammar.php:8
- > PHP Fatal error
Uncaught Error: Interface 'NinjaTables\\Framework\\Support\\ArrayableInterface' not found in wp-content/plugins/ninja-tables/vendor/wpfluent/framework/src/WPFluent/Support/Collection.php:19
- > PHP Fatal error
Uncaught Error: Class 'NinjaTables\\Framework\\Pagination\\AbstractPaginator' not found in wp-content/plugins/ninja-tables/vendor/wpfluent/framework/src/WPFluent/Pagination/LengthAwarePaginator.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: You are using too many tags: 24 tag instead of maximum 10
ninja-tables/ninja-tables.php 92% from 13 tests
The primary PHP file in "Ninja Tables - Best Data Table Plugin for WordPress" version 5.0.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)
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
There were no executable files found in this plugin53,587 lines of code in 253 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 18 | 3,690 | 3,986 | 26,850 |
PHP | 193 | 5,458 | 12,415 | 22,244 |
PO File | 6 | 1,344 | 1,522 | 2,922 |
CSS | 12 | 28 | 47 | 1,228 |
JSON | 4 | 0 | 0 | 279 |
SVG | 19 | 1 | 1 | 63 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 13.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 187.00 |
Average method complexity | 2.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 35 | |
Interfaces | 16 | |
Traits | 18 | |
Classes | 129 | |
▷ Abstract classes | 12 | 9.30% |
▷ Concrete classes | 117 | 90.70% |
▷ Final classes | 0 | 0.00% |
Methods | 1,906 | |
▷ Static methods | 244 | 12.80% |
▷ Public methods | 1,499 | 78.65% |
▷ Protected methods | 366 | 19.20% |
▷ Private methods | 41 | 2.15% |
Functions | 182 | |
▷ Named functions | 43 | 23.63% |
▷ Anonymous functions | 139 | 76.37% |
Constants | 13 | |
▷ Global constants | 6 | 46.15% |
▷ Class constants | 7 | 53.85% |
▷ Public constants | 7 | 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.35MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/heart.png | 2.00KB | 1.92KB | ▼ 4.06% |
assets/img/banner_premium.png | 196.67KB | 72.31KB | ▼ 63.23% |
assets/img/ninja-table-editor-button-2x.png | 15.15KB | 3.67KB | ▼ 75.81% |
assets/img/bug.png | 2.95KB | 3.09KB | 0.00% |
assets/img/fluent_banner.png | 42.00KB | 13.22KB | ▼ 68.51% |