Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.53ms] Passed 4 tests
This is a short check of server-side resources used by Custom DataBase Tables
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.32 ▲4.28 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.81 ▼16.30 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.37 ▲5.20 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.44 ▼22.01 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.86 ▼0.08 |
Server storage [IO: ▲4.46MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 84 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Custom DataBase Tables
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.21 ▼1.17 | 1.77 ▲0.14 | 43.16 ▲4.08 |
Dashboard /wp-admin | 2,203 ▲12 | 5.83 ▲0.93 | 104.06 ▼2.48 | 38.14 ▼7.49 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▲0.00 | 39.49 ▲2.71 | 34.46 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.56 ▼5.39 | 725.30 ▲118.57 | 66.28 ▲15.04 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.39 ▲0.21 | 99.15 ▼8.17 | 40.45 ▼2.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Trait 'CustomDataBaseTables\\Lib\\CdbtView' not found in wp-content/plugins/custom-database-tables/lib/shortcodes.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-database-tables/cdbt.php:46
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/custom-database-tables/templates/components/cdbt_table.php:42
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/custom-database-tables/templates/components/cdbt_forms.php:57
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/custom-database-tables/templates/admin/cdbt_management_console.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/custom-database-tables/templates/admin/cdbt_options.php:13
- > PHP Fatal error
Uncaught Error: Class 'CustomDataBaseTables\\Lib\\CdbtUtility' not found in wp-content/plugins/custom-database-tables/lib/core.php:14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/custom-database-tables/templates/components/cdbt_modal.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/custom-database-tables/templates/admin/cdbt_tables.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/custom-database-tables/templates/admin/cdbt_web_apis.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
custom-database-tables/cdbt.php 85% from 13 tests
"Custom DataBase Tables" version 2.1.34's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 346 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-database-tables.php" instead of "cdbt.php")
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected16,473 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 1,989 | 3,172 | 12,925 |
PO File | 1 | 802 | 996 | 2,515 |
SVG | 8 | 1 | 0 | 997 |
JavaScript | 9 | 1 | 135 | 32 |
CSS | 4 | 0 | 32 | 4 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 203)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 134.41 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 436.00 |
Average method complexity | 11.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 203.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 9 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 2 | 25.00% |
Methods | 212 | |
▷ Static methods | 14 | 6.60% |
▷ Public methods | 182 | 85.85% |
▷ Protected methods | 17 | 8.02% |
▷ Private methods | 13 | 6.13% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 14 | |
▷ Global constants | 3 | 21.43% |
▷ Class constants | 11 | 78.57% |
▷ Public constants | 11 | 100.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
11 PNG files occupy 0.41MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cdbt-noimage_reversal.png | 1.56KB | 1.40KB | ▼ 10.33% |
assets/images/cdbt_v2_image_3.png | 44.66KB | 19.15KB | ▼ 57.12% |
assets/images/database-table.png | 0.29KB | 0.29KB | 0.00% |
assets/images/cdbt_v2_image_1.png | 54.90KB | 24.15KB | ▼ 56.01% |
assets/images/cdbt_v2_image_5.png | 44.65KB | 19.36KB | ▼ 56.64% |