Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.15MB] [CPU: ▼8.76ms] Passed 4 tests
An overview of server-side resources used by Easy Business Hours
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 33.09 ▼8.65 |
Dashboard /wp-admin | 3.47 ▲0.12 | 44.47 ▼17.40 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 47.08 ▲0.55 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 82.10 ▼9.55 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 45.30 ▲9.13 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 3.44 | 37.14 |
Server storage [IO: ▲1.39MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 132 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
easy_business_hours |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Easy Business Hours
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲144 | 13.58 ▲0.33 | 2.07 ▼1.93 | 36.89 ▼9.13 |
Dashboard /wp-admin | 2,254 ▲66 | 5.83 ▲0.95 | 97.78 ▼16.24 | 40.62 ▼0.86 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.01 ▼0.01 | 39.92 ▲0.01 | 33.66 ▼2.35 |
Add New Post /wp-admin/post-new.php | 1,569 ▲36 | 22.93 ▼0.09 | 680.57 ▲19.96 | 70.64 ▲16.76 |
Media Library /wp-admin/upload.php | 1,433 ▲48 | 4.20 ▼0.01 | 117.80 ▲15.99 | 53.51 ▲10.10 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 1,455 | 3.67 | 48.02 | 61.59 |
Settings /wp-admin/admin.php?page=easy-business-hours#tab=settings | 2,620 | 4.60 | 100.83 | 36.27 |
Shortcode /wp-admin/admin.php?page=easy-business-hours#tab=shortcode | 1,494 | 3.75 | 56.91 | 34.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- easy_business_hours
- can_compress_scripts
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
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 errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #0, #0 in easy-business-hours/assets to your readme.txt
easy-business-hours/easy-business-hours.php 85% from 13 tests
The primary PHP file in "Easy Business Hours" version 1.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected16,943 lines of code in 101 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 72 | 2,262 | 1,014 | 10,029 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
Markdown | 2 | 85 | 0 | 379 |
CSS | 3 | 9 | 0 | 31 |
JavaScript | 2 | 0 | 2 | 2 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 20.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 6.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 2 | 3.64% |
▷ Concrete classes | 53 | 96.36% |
▷ Final classes | 1 | 1.89% |
Methods | 187 | |
▷ Static methods | 31 | 16.58% |
▷ Public methods | 187 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon-256x256.png | 6.62KB | 3.21KB | ▼ 51.47% |
inc/codestar-framework-master/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
assets/img/icon-128x128.png | 3.76KB | 1.92KB | ▼ 49.05% |