Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.89ms] Passed 4 tests
Server-side resources used by Sort ANY Table
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 38.41 ▼4.27 |
Dashboard /wp-admin | 3.39 ▲0.09 | 47.99 ▲0.28 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 50.86 ▲4.10 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 86.22 ▼7.69 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.41 ▲0.13 |
Sort Any Table /wp-admin/tools.php?page=bg_sort_table | 3.28 | 32.79 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Sort ANY Table: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲192 | 14.05 ▼0.51 | 12.98 ▲11.05 | 47.61 ▲3.45 |
Dashboard /wp-admin | 2,215 ▲23 | 4.87 ▼0.09 | 112.23 ▲4.62 | 40.76 ▲1.10 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 1.99 ▼0.02 | 40.16 ▲4.60 | 35.06 ▲1.84 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 22.85 ▼0.28 | 655.94 ▼37.99 | 58.27 ▼0.66 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.16 ▼0.05 | 108.56 ▲5.21 | 46.65 ▲0.97 |
Sort Any Table /wp-admin/tools.php?page=bg_sort_table | 854 | 2.13 | 26.36 | 29.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sort-any-table/ErrorLogging.php
- > /wp-content/plugins/sort-any-table/bg_sort_table.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% 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
Attributes that need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
sort-any-table/bg_sort_table.php 69% from 13 tests
The principal PHP file in "Sort ANY Table" v. 0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: The text domain should only use lowercase characters and dashes
- Description: The description should be shorter than 140 characters (currently 147 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("sort-any-table.php" instead of "bg_sort_table.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin986 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 145 | 53 | 448 |
JavaScript | 6 | 12 | 41 | 318 |
CSS | 3 | 12 | 9 | 197 |
JSON | 1 | 2 | 0 | 23 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 1.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 1 | 3.23% |
▷ Public methods | 29 | 93.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.45% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/tinymce-button.png | 2.34KB | 1.43KB | ▼ 39.14% |
assets/img/add-sorting.png | 30.45KB | 12.54KB | ▼ 58.82% |