10% wyzermebadge

Code Review | WyzerMeBadge

WordPress plugin WyzerMeBadge scored 10% from 54 tests.

About plugin

  • Plugin page: wyzermebadge
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Dec 26, 2012
  • Latest release: Dec 26, 2012
  • Number of updates: 4
  • Update frequency: every 177.8 days
  • Top authors: wyzermejay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 539 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /1.78 ▼1.057.30 ▼44.31
Dashboard /wp-admin1.80 ▼1.256.79 ▼44.66
Posts /wp-admin/edit.php1.80 ▼1.316.21 ▼53.82
Add New Post /wp-admin/post-new.php1.80 ▼3.635.19 ▼667.00
Media Library /wp-admin/upload.php1.80 ▼1.204.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.74 ▼0.279.78 ▲0.8045.31 ▼9.91
Dashboard /wp-admin2,967 ▲365.98 ▼0.03159.71 ▼2.82117.67 ▼8.96
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0172.71 ▼19.4397.07 ▼6.11
Add New Post /wp-admin/post-new.php1,683 ▼018.71 ▼0.06374.60 ▲15.63112.47 ▲2.51
Media Library /wp-admin/upload.php1,804 ▼65.01 ▲0.01169.09 ▲10.67128.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

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
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP1122548

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 code0.09
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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