Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.01MB] [CPU: ▼43.18ms] Passed 4 tests
An overview of server-side resources used by AJAX Table with Custom CRUD API
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▼0.50 | 17.53 ▼24.04 |
Dashboard /wp-admin | 3.01 ▼0.30 | 16.88 ▼37.84 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 17.70 ▼29.79 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 18.19 ▼81.04 |
Media Library /wp-admin/upload.php | 3.01 ▼0.23 | 16.61 ▼18.63 |
AJDT Short Codes /wp-admin/admin.php?page=ajdtshortcodes | 3.01 | 17.20 |
AJDT Settings /wp-admin/admin.php?page=ajdtsettings | 3.01 | 16.29 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please fix the following
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/ajax-table-with-custom-crud-api/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 26 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_ajdt_utils |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for AJAX Table with Custom CRUD API
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲106 | 13.65 ▼0.93 | 1.81 ▲0.22 | 27.64 ▼12.33 |
Dashboard /wp-admin | 2,270 ▲67 | 5.42 ▲0.56 | 115.37 ▲9.61 | 49.79 ▲9.05 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 2.57 ▲0.55 | 40.40 ▲0.73 | 39.06 ▲3.46 |
Add New Post /wp-admin/post-new.php | 1,727 ▲201 | 23.22 ▲5.67 | 698.01 ▲17.99 | 44.24 ▼20.21 |
Media Library /wp-admin/upload.php | 1,452 ▲52 | 4.75 ▲0.52 | 112.05 ▲3.50 | 49.52 ▲2.64 |
AJDT Short Codes /wp-admin/admin.php?page=ajdtshortcodes | 914 | 2.20 | 27.51 | 40.65 |
AJDT Settings /wp-admin/admin.php?page=ajdtsettings | 1,434 | 2.62 | 58.74 | 59.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function register_rest_route was called incorrectly. REST API routes must be registered on the rest_api_init action. Please see Debugging in WordPress for more information. (This message was added in version 5.1.0.)
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_ajdt_utils
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
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
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ajdtsettings
- > User notice in wp-includes/functions.php+5905
Function register_rest_route was called incorrectly. REST API routes must be registered on the rest_api_init action. Please see Debugging in WordPress for more information. (This message was added in version 5.1.0.)
- > GET request to /wp-admin/admin.php?page=ajdtshortcodes
- > Warning in wp-content/plugins/ajax-table-with-custom-crud-api/includes/class-general-util.php+53
Invalid argument supplied for foreach()
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ajax-table-with-custom-crud-api/includes/class-ui.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/ajax-table-with-custom-crud-api/includes/class-api-registrar.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ajax-table-with-custom-crud-api/ajdttable.php:85
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/ajax-table-with-custom-crud-api/includes/class-api-utils.php:6
- > 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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: data filters, bootstrap, crud api, crud operations, filters...
ajax-table-with-custom-crud-api/ajdttable.php 77% from 13 tests
"AJAX Table with Custom CRUD API" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ajax-table-with-custom-crud-api.php" instead of "ajdttable.php")
- Description: The description should be shorter than 140 characters (currently 213 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,412 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 160 | 370 | 932 |
JavaScript | 8 | 38 | 44 | 362 |
CSS | 5 | 8 | 17 | 65 |
Markdown | 1 | 16 | 0 | 53 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 10.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 51 | |
▷ Static methods | 2 | 3.92% |
▷ Public methods | 49 | 96.08% |
▷ Protected methods | 1 | 1.96% |
▷ Private methods | 1 | 1.96% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected