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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.27ms] Passed 4 tests
Server-side resources used by Connections Business Directory Open Hours
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 42.21 ▲1.76 |
Dashboard /wp-admin | 3.39 ▲0.04 | 52.62 ▼9.97 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 52.19 ▼0.24 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 96.06 ▼8.64 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.64 ▲5.05 |
Server storage [IO: ▲0.20MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Connections Business Directory Open Hours
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲33 | 14.28 ▼0.29 | 2.06 ▲0.28 | 45.68 ▲4.81 |
Dashboard /wp-admin | 2,197 ▲20 | 5.62 ▼0.05 | 99.06 ▲6.64 | 42.58 ▲2.40 |
Posts /wp-admin/edit.php | 2,105 ▲2 | 2.04 ▲0.04 | 40.64 ▲0.56 | 38.61 ▼1.60 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.38 ▲0.16 | 677.30 ▼17.77 | 53.07 ▼6.28 |
Media Library /wp-admin/upload.php | 1,405 ▲14 | 4.22 ▲0.11 | 104.85 ▼2.86 | 42.83 ▼0.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 52 tag instead of maximum 10
connections-business-directory-hours/connections_hours.php 85% from 13 tests
The main PHP script in "Connections Business Directory Open Hours" version 1.2.1 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Name the main plugin file the same as the plugin slug ("connections-business-directory-hours.php" instead of "connections_hours.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin3,065 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 242 | 332 | 1,957 |
PHP | 3 | 229 | 332 | 599 |
PO File | 3 | 108 | 155 | 307 |
CSS | 4 | 43 | 30 | 202 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 52.00 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 4.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 21 | 77.78% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/x.png | 0.19KB | 0.09KB | ▼ 52.26% |