Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wyzermebadge/WyzerMeBadge.php+29
Methods with the same name as their class will not be constructors in a future version of PHP; WyzerMeBadge has a deprecated constructor
Server metrics [RAM: ▼1.85MB] [CPU: ▼202.45ms] Passed 4 tests
This is a short check of server-side resources used by WyzerMeBadge
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.78 ▼1.05 | 7.30 ▼44.31 |
Dashboard /wp-admin | 1.80 ▼1.25 | 6.79 ▼44.66 |
Posts /wp-admin/edit.php | 1.80 ▼1.31 | 6.21 ▼53.82 |
Add New Post /wp-admin/post-new.php | 1.80 ▼3.63 | 5.19 ▼667.00 |
Media Library /wp-admin/upload.php | 1.80 ▼1.20 | 4.70 ▼30.99 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_wyzermebadge |
Browser metrics Passed 4 tests
A check of browser resources used by WyzerMeBadge
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.74 ▼0.27 | 9.78 ▲0.80 | 45.31 ▼9.91 |
Dashboard /wp-admin | 2,967 ▲36 | 5.98 ▼0.03 | 159.71 ▼2.82 | 117.67 ▼8.96 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.01 | 72.71 ▼19.43 | 97.07 ▼6.11 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.71 ▼0.06 | 374.60 ▲15.63 | 112.47 ▲2.51 |
Media Library /wp-admin/upload.php | 1,804 ▼6 | 5.01 ▲0.01 | 169.09 ▲10.67 | 128.41 ▲10.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wyzermebadge/WyzerMeBadge.php+29
Methods with the same name as their class will not be constructors in a future version of PHP; WyzerMeBadge has a deprecated constructor
- The uninstall procedure has failed, leaving 1 option in the database
- widget_wyzermebadge
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wyzermebadge/WyzerMeBadge.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (configuration.gif : Configuration for the WyzerMeBadge.), #2 (on_blog.gif : Example of WyzerMeBadge being displayed on a blog.)
- Requires at least: Version not formatted correctly
wyzermebadge/WyzerMeBadge.php 92% from 13 tests
"WyzerMeBadge" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wyzermebadge.php" instead of "WyzerMeBadge.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin48 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 12 | 25 | 48 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 0 | |
▷ Named functions | 0 | 0.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
There were not PNG files found in your plugin