83% maker-badge

Code Review | Maker Badge

WordPress plugin Maker Badge scored83%from 54 tests.

About plugin

  • Plugin page: maker-badge
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.0
  • WordPress version: 6.3.1
  • First release: Mar 24, 2023
  • Latest release: Apr 9, 2023
  • Number of updates: 8
  • Update frequency: every 2.0 days
  • Top authors: ehtmlu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /199 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.09ms] Passed 4 tests

An overview of server-side resources used by Maker Badge
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.30 ▼4.60
Dashboard /wp-admin3.33 ▲0.0348.63 ▼8.24
Posts /wp-admin/edit.php3.38 ▲0.0351.09 ▲1.63
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.30 ▼17.16
Media Library /wp-admin/upload.php3.25 ▲0.0341.27 ▲2.87
Maker Badge /wp-admin/options-general.php?page=makerbadge3.2537.85

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
makerbadge_settings
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Maker Badge
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.34 ▼0.061.72 ▼0.1243.90 ▲0.08
Dashboard /wp-admin2,201 ▲275.63 ▲0.0592.69 ▼26.5040.28 ▼4.15
Posts /wp-admin/edit.php2,106 ▲32.01 ▲0.0539.39 ▼1.6536.93 ▼6.04
Add New Post /wp-admin/post-new.php1,531 ▼623.26 ▲4.95698.18 ▲48.4273.49 ▲4.13
Media Library /wp-admin/upload.php1,406 ▲64.20 ▲0.0198.90 ▲0.4140.22 ▼4.38
Maker Badge /wp-admin/options-general.php?page=makerbadge1,15511.78235.2528.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • makerbadge_settings
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maker-badge/makerbadge.php:59

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #0 in maker-badge/assets to your readme.txt
You can look at the official readme.txt

maker-badge/makerbadge.php 69% from 13 tests

The main PHP file in "Maker Badge" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("maker-badge.php" instead of "makerbadge.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("6.0.0" instead of "5.2")
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.3" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected336 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12969196
PHP1251977
CSS29063

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions114.29%
▷ Anonymous functions685.71%
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