Benchmarks
Plugin footprint 65% 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.48MB] [CPU: ▼53.47ms] Passed 4 tests
An overview of server-side resources used by Logo and Address Widget with Schema
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.51 ▼0.95 | 5.90 ▼38.42 |
Dashboard /wp-admin | 2.53 ▼0.77 | 7.28 ▼43.57 |
Posts /wp-admin/edit.php | 2.54 ▼0.83 | 6.83 ▼43.86 |
Add New Post /wp-admin/post-new.php | 2.53 ▼3.36 | 7.51 ▼88.04 |
Media Library /wp-admin/upload.php | 2.53 ▼0.70 | 6.63 ▼26.03 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_logo-and-address-widget-with-schema |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Logo and Address Widget with Schema
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲71 | 14.30 ▼0.05 | 2.28 ▲0.58 | 38.66 ▼7.65 |
Dashboard /wp-admin | 2,204 ▲24 | 5.61 ▼0.04 | 91.55 ▲0.08 | 41.59 ▼4.39 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 1.99 ▲0.02 | 40.36 ▲2.45 | 37.53 ▲4.38 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 23.68 ▲0.60 | 606.09 ▼72.58 | 57.49 ▲5.30 |
Media Library /wp-admin/upload.php | 1,406 ▲12 | 4.25 ▲0.08 | 94.73 ▼3.00 | 38.62 ▼5.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the laawws-custom-styles handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_logo-and-address-widget-with-schema
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- 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)
Even though everything seems fine, this is not an exhaustive test
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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png)
logo-and-address-widget-with-schema/logo-and-address-widget-with-schema.php Passed 13 tests
Analyzing the main PHP file in "Logo and Address Widget with Schema" version 2.9
74 characters long description:
Widget to add a company logo and address to either the footer or side bar.
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
Everything looks great! No dangerous files found in this plugin862 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 369 | 132 | 670 |
CSS | 1 | 19 | 2 | 118 |
JavaScript | 1 | 29 | 13 | 74 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 98.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 194.00 |
Average method complexity | 22.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.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 | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 1 | 10.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.20MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
laawws-widget-screen1.png | 82.40KB | 23.60KB | ▼ 71.36% |
screenshot-2.png | 82.40KB | 23.60KB | ▼ 71.36% |
(invalid) screenshot-1.png | 37.62KB | 0.00KB | ▼ 100.00% |