100% admin-bug-report

Code Review | Admin Bug Report

WordPress plugin Admin Bug Report scored 100% from 54 tests.

About plugin

  • Plugin page: admin-bug-report
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.9.2
  • WordPress version: 5.9.2
  • First release: Nov 12, 2018
  • Latest release: Mar 12, 2022
  • Number of updates: 28
  • Update frequency: every 43.5 days
  • Top authors: davidbaumwald (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,504 total downloads

Benchmarks

Plugin footprint Passed 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.07MB] [CPU: ▼290.46ms] Passed 4 tests

Server-side resources used by Admin Bug Report
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1558.28 ▲6.43
Dashboard /wp-admin3.50 ▲0.0936.95 ▲0.18
Posts /wp-admin/edit.php3.73 ▲0.0946.76 ▲0.74
Add New Post /wp-admin/post-new.php6.97 ▲0.0099.53 ▼1,164.20
Media Library /wp-admin/upload.php3.39 ▲0.0928.56 ▲1.46
Admin Bug Report /wp-admin/options-general.php?page=admin-bug-report-settings3.3727.80

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 1 new option
New WordPress options
de_admin_bug_report

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Bug Report
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,874 ▲12021.03 ▲5.026.14 ▲0.542.19 ▼0.02
Dashboard /wp-admin2,970 ▲11610.13 ▲3.96229.01 ▲88.84157.55 ▼24.77
Posts /wp-admin/edit.php2,813 ▲1228.41 ▲5.18122.46 ▲60.54140.22 ▲0.78
Add New Post /wp-admin/post-new.php1,672 ▼10017.14 ▼4.62357.75 ▼97.36158.78 ▼1.50
Media Library /wp-admin/upload.php1,804 ▲10610.47 ▲4.93182.50 ▲7.15189.97 ▲2.88
Admin Bug Report /wp-admin/options-general.php?page=admin-bug-report-settings1,1668.52158.51137.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: issue, report, screenshot, admin, bug

admin-bug-report/admin-bug-report.php Passed 13 tests

The entry point to "Admin Bug Report" version 2.0.1 is a PHP file that has certain tags in its header comment area
93 characters long description:
A small plugin to help your WordPress clients report bugs and issues directly from the admin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected456 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP8128506352
PO File1303498
JavaScript22164
CSS2202

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.50
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity1.84
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2371.88%
▷ Protected methods13.12%
▷ Private methods825.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 files were detected