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.03MB] [CPU: ▼1.49ms] Passed 4 tests
Server-side resources used by Connections Business Directory Local Time
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.66 ▼3.22 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.64 ▼1.73 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 43.90 ▼3.00 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 90.76 ▲4.50 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 36.34 ▲1.98 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Connections Business Directory Local Time
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲33 | 14.35 ▼0.38 | 1.58 ▼0.18 | 37.28 ▼9.53 |
Dashboard /wp-admin | 2,203 ▲23 | 5.53 ▼0.09 | 82.16 ▼18.51 | 39.37 ▼4.79 |
Posts /wp-admin/edit.php | 2,105 ▲8 | 2.01 ▼0.02 | 33.84 ▼4.99 | 31.90 ▼4.92 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.03 ▼0.77 | 677.96 ▼4.08 | 53.07 ▼1.57 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.20 ▼0.00 | 95.32 ▼21.56 | 44.05 ▼1.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/connections-business-directory-local-time/connections-local-time.php:273
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 86% 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
3 plugin tags: clock, business directory, local time
connections-business-directory-local-time/connections-local-time.php 69% from 13 tests
The main file in "Connections Business Directory Local Time" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path folder does not exist ("/languages")
- Description: Please don't use more than 140 characters for the plugin description (currently 151 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("connections-business-directory-local-time.php" instead of "connections-local-time.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected792 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 72 | 176 | 418 |
PHP | 2 | 123 | 218 | 335 |
CSS | 1 | 1 | 0 | 39 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 16 | |
▷ Static methods | 9 | 56.25% |
▷ Public methods | 13 | 81.25% |
▷ Protected methods | 1 | 6.25% |
▷ Private methods | 2 | 12.50% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
23 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/vendor/jClocksGMT/images/jcgmt-3-clock_face.png | 10.13KB | 5.72KB | ▼ 43.50% |
includes/vendor/jClocksGMT/images/jcgmt-4-clock_hour.png | 1.19KB | 0.23KB | ▼ 80.97% |
includes/vendor/jClocksGMT/images/jcgmt-clock_label.png | 1.18KB | 0.51KB | ▼ 56.58% |
includes/vendor/jClocksGMT/images/jcgmt-5-clock_min.png | 1.18KB | 0.36KB | ▼ 69.26% |
includes/vendor/jClocksGMT/images/jcgmt-4-clock_sec.png | 1.33KB | 0.35KB | ▼ 74.07% |