Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.15ms] Passed 4 tests
Server-side resources used by My wpdb
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.12 ▼0.56 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.35 ▼4.85 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.02 ▼6.61 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 87.78 ▼16.59 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.24 ▲3.96 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for My wpdb
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲49 | 13.31 ▼0.69 | 1.67 ▼0.27 | 34.00 ▼8.76 |
Dashboard /wp-admin | 2,238 ▲35 | 5.83 ▲0.96 | 98.75 ▼12.00 | 43.17 ▼0.38 |
Posts /wp-admin/edit.php | 2,117 ▲20 | 2.01 ▲0.02 | 34.85 ▼3.67 | 37.52 ▲2.28 |
Add New Post /wp-admin/post-new.php | 1,559 ▲28 | 18.34 ▼4.92 | 639.01 ▼51.65 | 67.90 ▲15.70 |
Media Library /wp-admin/upload.php | 1,420 ▲17 | 4.23 ▲0.01 | 100.43 ▼7.28 | 45.10 ▲2.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: Mywpdb_Get_Table in wp-content/plugins/my-wpdb/Includes/Component/c--search-form.php on line 7
- > PHP Fatal error
Uncaught Error: Call to a member function search_tables() on null in wp-content/plugins/my-wpdb/Includes/Component/c--search-form.php:7
- > PHP Warning
require_once(/Includes/Class/mywpdb--class.php): failed to open stream: No such file or directory in wp-content/plugins/my-wpdb/Includes/mywpdb--include.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Mywpdb_Get_Table' not found in wp-content/plugins/my-wpdb/Pages/page--tables.php:2
- > PHP Fatal error
Uncaught Error: Class 'Mywpdb_Get_Table' not found in wp-content/plugins/my-wpdb/Pages/page--search.php:2
- > PHP Notice
Undefined variable: mywpdb_path in wp-content/plugins/my-wpdb/Includes/mywpdb--include.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Mywpdb_Delete' not found in wp-content/plugins/my-wpdb/Pages/page--table.php:2
- > PHP Fatal error
Uncaught Error: Class 'Mywpdb_Get_Table' not found in wp-content/plugins/my-wpdb/Pages/page--table-row.php:2
- > PHP Fatal error
require_once(): Failed opening required '/Includes/Class/mywpdb--class.php' (include_path='.:/usr/share/php') in wp-content/plugins/my-wpdb/Includes/mywpdb--include.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Mywpdb_Get_Table' not found in wp-content/plugins/my-wpdb/Pages/page.php:5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3 in my-wpdb/assets to your readme.txt
my-wpdb/mywpdb.php 85% from 13 tests
Analyzing the main PHP file in "My wpdb" version 3.1.6
You should first fix the following items:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: It is recommended to name the main PHP file as the plugin slug ("my-wpdb.php" instead of "mywpdb.php")
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
No dangerous file extensions were detected1,969 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 92 | 322 | 756 |
PHP | 16 | 154 | 154 | 716 |
Sass | 4 | 121 | 16 | 476 |
Markdown | 1 | 4 | 0 | 15 |
JavaScript | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 6.40 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There were not PNG files found in your plugin