Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/lord-linus-business-hours/lordlinus-business-hours.php+449
Methods with the same name as their class will not be constructors in a future version of PHP; lordlinus_businesshour has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼47.37ms] Passed 4 tests
A check of server-side resources used by Lord Linus Business hours
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 8.69 ▼35.42 |
Dashboard /wp-admin | 2.29 ▼1.01 | 11.87 ▼40.75 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 10.93 ▼36.41 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 9.88 ▼76.90 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 11.06 ▼23.30 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_lordlinus_businesshour |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Lord Linus Business hours
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲88 | 13.18 ▼1.19 | 1.72 ▼0.40 | 50.00 ▲2.51 |
Dashboard /wp-admin | 2,213 ▲28 | 5.81 ▼0.04 | 100.78 ▼2.96 | 46.61 ▲3.34 |
Posts /wp-admin/edit.php | 2,111 ▲25 | 1.97 ▼0.09 | 39.04 ▲2.57 | 36.72 ▲1.98 |
Add New Post /wp-admin/post-new.php | 1,366 ▼176 | 16.73 ▼1.55 | 582.30 ▼62.61 | 54.38 ▼1.46 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.25 ▲0.04 | 95.86 ▼2.76 | 42.75 ▼1.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in lordlinus_businesshour is deprecated since version 4.3.0! Use __construct() instead.
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_lordlinus_businesshour
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× 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/lord-linus-business-hours/lordlinus-business-hours.php:443
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== lord-linus-business-hours ===
) - Screenshots: These screenshots have no corresponding images in /assets: #1 (Contact Us Form on a page), #2 (Entries into admin dashboard)
lord-linus-business-hours/lordlinus-business-hours.php 92% from 13 tests
The primary PHP file in "Lord Linus Business hours" version 1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("lord-linus-business-hours.php" instead of "lordlinus-business-hours.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin5,278 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 891 | 39 | 4,695 |
PHP | 1 | 45 | 17 | 497 |
JavaScript | 1 | 5 | 7 | 86 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin