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.00MB] [CPU: ▼3.43ms] Passed 4 tests
Server-side resources used by TBD Events
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.28 ▼1.07 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.23 ▼3.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.97 ▼2.69 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.32 ▼4.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.46 ▼3.54 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by TBD Events
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.20 ▼0.15 | 1.78 ▼0.05 | 47.64 ▲5.65 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▼0.04 | 90.00 ▼0.14 | 38.06 ▼2.59 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.13 | 36.31 ▼0.41 | 33.50 ▼2.66 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.13 ▲4.84 | 630.44 ▲3.58 | 52.29 ▼12.64 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.21 ▲0.07 | 97.53 ▼5.41 | 41.95 ▼5.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
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)
The smoke test was a success, however most plugin functionality was not tested
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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tbd-events/includes/tbd-events-products.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tbd-events/includes/admin/tbd-events.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/tbd-events/thinkbydesign-events.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tbd-events/includes/admin/tbd-events-options.php:3
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% 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 require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is stored in the /assets directory.), #2 (This is the second screen shot)
tbd-events/thinkbydesign-events.php 92% from 13 tests
This is the main PHP file of "TBD Events" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("tbd-events.php" instead of "thinkbydesign-events.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,482 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 161 | 55 | 1,070 |
CSS | 3 | 37 | 48 | 400 |
JavaScript | 3 | 0 | 5 | 12 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 3.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 76.47% |
▷ Protected methods | 4 | 23.53% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 28 | 93.33% |
▷ Anonymous functions | 2 | 6.67% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/img/busker.png | 25.42KB | 13.18KB | ▼ 48.15% |
includes/img/bg.png | 4.87KB | 1.91KB | ▼ 60.82% |
includes/img/16x16.png | 2.25KB | 0.60KB | ▼ 73.34% |