Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.20ms] Passed 4 tests
An overview of server-side resources used by AJ CSV to DataTable
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 48.19 ▲6.82 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.64 ▼2.31 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.71 ▼1.29 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 97.57 ▼6.27 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 39.64 ▲5.08 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for AJ CSV to DataTable
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.31 ▼0.12 | 2.12 ▲0.38 | 41.41 ▼2.64 |
Dashboard /wp-admin | 2,198 ▲21 | 5.59 ▼0.00 | 92.20 ▲2.18 | 40.55 ▲0.98 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▼0.06 | 38.22 ▼1.68 | 35.00 ▼1.05 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 22.90 ▼0.55 | 695.50 ▼11.54 | 55.90 ▲5.09 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.24 ▲0.01 | 98.25 ▼5.38 | 43.25 ▼4.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- 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)
Everything seems fine, however this is by no means 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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/aj-csv-to-datatable/aj-csv-to-datatable.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #1 in aj-csv-to-datatable/assets to your readme.txt
aj-csv-to-datatable/aj-csv-to-datatable.php Passed 13 tests
The main PHP file in "AJ CSV to DataTable" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
77 characters long description:
Import data from a spreadsheet (.csv file format) and display in a DataTable.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin422 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 61 | 177 | 223 |
JavaScript | 1 | 4 | 15 | 160 |
Markdown | 1 | 26 | 0 | 38 |
CSS | 1 | 3 | 11 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 1 | 7.14% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/DataTables-1.10.9/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
css/DataTables-1.10.9/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
img/file-type-icons.png | 14.68KB | 4.69KB | ▼ 68.06% |
css/DataTables-1.10.9/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
css/DataTables-1.10.9/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |