94% badgeos-reset

Code Review | BadgeOS Reset Developer Add-On

WordPress plugin BadgeOS Reset Developer Add-On scored 94% from 54 tests.

About plugin

  • Plugin page: badgeos-reset
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-3.9.1
  • WordPress version: 5.8.1
  • First release: Oct 5, 2014
  • Latest release: Nov 28, 2014
  • Number of updates: 4
  • Update frequency: every 35.8 days
  • Top authors: tw2113 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,149 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼140.58ms] Passed 4 tests

This is a short check of server-side resources used by BadgeOS Reset Developer Add-On
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1242.39 ▲19.50
Dashboard /wp-admin3.06 ▲0.0051.65 ▲1.71
Posts /wp-admin/edit.php3.11 ▲0.0053.56 ▼3.49
Add New Post /wp-admin/post-new.php5.42 ▼0.02102.98 ▼562.20
Media Library /wp-admin/upload.php3.00 ▲0.0038.90 ▲1.66

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by BadgeOS Reset Developer Add-On
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,694 ▲12216.24 ▲0.5411.54 ▲0.2049.68 ▼1.13
Dashboard /wp-admin2,966 ▲325.90 ▼0.31176.37 ▼6.16115.70 ▲1.19
Posts /wp-admin/edit.php2,736 ▼32.72 ▲0.0073.05 ▼8.9195.27 ▲1.75
Add New Post /wp-admin/post-new.php1,683 ▲6816.36 ▼5.11453.31 ▲131.46117.41 ▲7.57
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.01162.42 ▼8.39120.24 ▼13.12

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/badgeos-reset/badgeos-reset.php:53

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

badgeos-reset/badgeos-reset.php Passed 13 tests

The principal PHP file in "BadgeOS Reset Developer Add-On" v. 1.0.0 is loaded by WordPress automatically on each request
76 characters long description:
This BadgeOS add-on adds support to reset BadgeOS data for developer purpose

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin159 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP196128159

PHP code Passed 2 tests

An overview 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.26
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods15100.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
No PNG images were found in this plugin