Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wptables/includes/data/class-wptables-csv-parser.php+581
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.49MB] [CPU: ▼186.53ms] Passed 4 tests
This is a short check of server-side resources used by WordPress Tables
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼0.69 | 9.98 ▼10.63 |
Dashboard /wp-admin | 2.16 ▼0.90 | 5.26 ▼32.97 |
Posts /wp-admin/edit.php | 2.16 ▼0.95 | 4.94 ▼26.30 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.28 | 5.85 ▼670.61 |
Media Library /wp-admin/upload.php | 2.16 ▼0.84 | 5.23 ▼16.24 |
Add New /wp-admin/admin.php?page=wptables-add-new | 2.16 | 5.28 |
WPTables /wp-admin/admin.php?page=wptables | 2.16 | 5.66 |
About /wp-admin/admin.php?page=wptables-about | 2.16 | 5.14 |
Server storage [IO: ▲6.69MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 263 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WordPress Tables
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,857 ▲256 | 17.89 ▲1.85 | 8.84 ▲3.63 | 75.22 ▼2.21 |
Dashboard /wp-admin | 2,986 ▲91 | 7.79 ▲1.68 | 168.80 ▲34.20 | 166.05 ▼5.13 |
Posts /wp-admin/edit.php | 2,805 ▲65 | 4.34 ▲1.11 | 73.36 ▲9.03 | 149.60 ▲9.97 |
Add New Post /wp-admin/post-new.php | 3,747 ▲94 | 20.12 ▲1.55 | 440.60 ▲18.00 | 187.47 ▲18.73 |
Media Library /wp-admin/upload.php | 1,805 ▲53 | 7.04 ▲1.49 | 133.27 ▼16.15 | 189.45 ▼12.12 |
Add New /wp-admin/admin.php?page=wptables-add-new | 2,026 | 4.17 | 72.56 | 166.90 |
WPTables /wp-admin/admin.php?page=wptables | 1,414 | 3.95 | 63.47 | 100.98 |
About /wp-admin/admin.php?page=wptables-about | 1,461 | 3.94 | 64.88 | 122.78 |
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
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wptables/includes/data/class-wptables-csv-parser.php+581
Array and string offset access syntax with curly braces is deprecated
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 48 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wptables-about
- > Deprecated in wp-content/plugins/wptables/includes/data/class-wptables-csv-parser.php+1088
Array and string offset access syntax with curly braces is deprecated
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wptables/public/partials/plugin-name-public-display.php
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wptables/admin/partials/view-wptables-add-new-table-json.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_meta_box() in wp-content/plugins/wptables/admin/partials/view-wptables-about.php:10
- > PHP Fatal error
Uncaught Error: Class 'WPTables_ListView' not found in wp-content/plugins/wptables/admin/partials/view-wptables-admin.php:16
- > PHP Fatal error
Uncaught Error: Class 'WPTables_Parser' not found in wp-content/plugins/wptables/includes/data/class-wptables-csv-parser.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wptables/admin/partials/view-wptables-add-new-table-csv.php:2
- > PHP Fatal error
Uncaught Error: Class 'WPTables_Parser' not found in wp-content/plugins/wptables/includes/data/class-wptables-json-parser.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wptables/admin/partials/view-wptables-add-new-table-mysql.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wptables/admin/partials/view-wptables-add-new-table-manual.php:1
- > PHP Fatal error
Uncaught Error: Class 'WPTables_View' not found in wp-content/plugins/wptables/admin/partials/view-wptables-list-tables.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPTables_Parser' not found in wp-content/plugins/wptables/includes/data/class-wptables-mysql-parser.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 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
6 plugin tags: mysql to table, excel table, responsive tables, csv to table, data tables...
wptables/wptables.php Passed 13 tests
The main PHP script in "WordPress Tables" version 1.3.9 is automatically included on every request by WordPress
120 characters long description:
Create, manage and design interactive tables without writing any code. Sorting, paging, formatting and lot more options.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin84,957 lines of code in 239 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 196 | 20,882 | 26,978 | 79,055 |
CSS | 10 | 478 | 314 | 2,818 |
PHP | 29 | 334 | 710 | 2,539 |
LESS | 1 | 75 | 15 | 477 |
JSON | 1 | 0 | 0 | 28 |
Markdown | 1 | 10 | 0 | 25 |
SVG | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 20.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 2 | 9.52% |
▷ Concrete classes | 19 | 90.48% |
▷ Final classes | 0 | 0.00% |
Methods | 150 | |
▷ Static methods | 13 | 8.67% |
▷ Public methods | 97 | 64.67% |
▷ Protected methods | 39 | 26.00% |
▷ Private methods | 14 | 9.33% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/csv.png | 3.73KB | 1.87KB | ▼ 49.97% |
admin/img/manual.png | 4.46KB | 2.46KB | ▼ 44.78% |
admin/img/json.png | 4.11KB | 2.08KB | ▼ 49.34% |
admin/img/mysql.png | 6.77KB | 3.78KB | ▼ 44.12% |