Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.29ms] Passed 4 tests
A check of server-side resources used by ThePerfectWedding.nl Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 39.28 ▲3.84 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.16 ▲2.57 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 41.85 ▼4.01 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.65 ▼16.97 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.80 ▲1.25 |
TPW Widget Options /wp-admin/options-general.php?page=TPWWidget | 3.25 | 30.72 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_tpw_rating |
Browser metrics Passed 4 tests
ThePerfectWedding.nl Widget: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.69 ▲0.44 | 1.67 ▲0.05 | 43.13 ▲1.16 |
Dashboard /wp-admin | 2,199 ▲19 | 5.58 ▼0.07 | 88.34 ▼0.67 | 42.85 ▲1.66 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.03 ▼0.00 | 34.69 ▼3.78 | 30.23 ▼0.95 |
Add New Post /wp-admin/post-new.php | 1,539 ▲4 | 18.27 ▲0.20 | 639.55 ▲1.46 | 71.57 ▲4.50 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.18 ▼0.03 | 95.69 ▼18.10 | 42.29 ▼2.48 |
TPW Widget Options /wp-admin/options-general.php?page=TPWWidget | 841 | 2.01 | 24.01 | 33.73 |
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
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_tpw_rating
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/theperfectweddingnl-widget/widget/tpwWidgetFrontendTemplate.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: snippetCode in wp-content/plugins/theperfectweddingnl-widget/widget/tpwWidgetFrontendTemplate.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theperfectweddingnl-widget/admin/tpwAdminPanel.php:12
- > PHP Notice
Undefined variable: widgetCode in wp-content/plugins/theperfectweddingnl-widget/widget/tpwWidgetFrontendTemplate.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/theperfectweddingnl-widget/widget/tpwWidgetAdminFormTemplate.php:2
- > PHP Notice
Undefined variable: ratingsCount in wp-content/plugins/theperfectweddingnl-widget/widget/tpwWidgetFrontendTemplate.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/theperfectweddingnl-widget/widget/tpwWidget.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/theperfectweddingnl-widget/admin/tpwAdminPanelTemplate.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theperfectweddingnl-widget/tpw.php:16
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== theperfectweddingnl-widget ===
)
theperfectweddingnl-widget/tpw.php 85% from 13 tests
The principal PHP file in "ThePerfectWedding.nl Widget" v. 2.7 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("theperfectweddingnl-widget.php" instead of "tpw.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 193 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin313 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 83 | 157 | 247 |
PO File | 1 | 27 | 37 | 66 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 2 | 13.33% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.67% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin