Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.47MB] [CPU: ▲15.93ms] 75% from 4 tests
An overview of server-side resources used by We’re Open!
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 879.87ms on /wp-admin/options-general.php?page=opening_hours_settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.00 ▲1.53 | 60.91 ▲21.95 |
Dashboard /wp-admin | 4.82 ▲1.51 | 102.19 ▲53.63 |
Posts /wp-admin/edit.php | 4.86 ▲1.50 | 64.50 ▲15.03 |
Add New Post /wp-admin/post-new.php | 7.33 ▲1.43 | 100.46 ▲5.23 |
Media Library /wp-admin/upload.php | 4.67 ▲1.44 | 54.71 ▲21.50 |
We’re Open! /wp-admin/options-general.php?page=opening_hours_settings | 5.35 | 879.87 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 32 new options
New WordPress options |
---|
theysaidso_admin_options |
we_are_open_day_range_separator |
we_are_open_weekdays |
we_are_open_javascript |
we_are_open_day_format_special |
we_are_open_time_separator |
widget_recent-comments |
we_are_open_closed_text |
we_are_open_week_start |
db_upgraded |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for We’re Open!
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲178 | 13.47 ▼1.27 | 8.97 ▲7.37 | 45.37 ▲5.11 |
Dashboard /wp-admin | 2,237 ▲60 | 5.64 ▼0.03 | 94.84 ▼4.42 | 43.08 ▼3.23 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.02 ▲0.05 | 40.36 ▼2.69 | 36.16 ▲0.06 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 22.91 ▼0.06 | 663.68 ▼4.81 | 57.76 ▲4.35 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.20 ▲0.05 | 97.92 ▼4.50 | 46.49 ▼0.20 |
We’re Open! /wp-admin/options-general.php?page=opening_hours_settings | 5,821 | 3.49 | 57.34 | 30.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 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 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: open times, structured data, google my business, opening hours, opening times...
opening-hours/opening-hours.php Passed 13 tests
The principal PHP file in "We’re Open!" v. 1.55 is loaded by WordPress automatically on each request
139 characters long description:
Smart and easy management for your business’ regular and special opening hours with Structured Data plus populate from Google My Business
Code Analysis 95% from 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 detected11,543 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 1,150 | 108 | 8,209 |
CSS | 2 | 14 | 2 | 1,707 |
JavaScript | 2 | 313 | 3 | 1,561 |
SVG | 1 | 0 | 0 | 66 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,377)
- Method cyclomatic complexity should be reduced to less than 100 (currently 412)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 1.00 |
Average class complexity | 943.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 2,377.00 |
Average method complexity | 33.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 412.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 | 75 | |
▷ Static methods | 7 | 9.33% |
▷ Public methods | 56 | 74.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 25.33% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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 are no PNG files in this plugin