90% admin-bug-report

Code Review | Admin Bug Report

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

About plugin

  • Plugin page: admin-bug-report
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3
  • WordPress version: 6.3.1
  • First release: Nov 12, 2018
  • Latest release: Aug 3, 2023
  • Number of updates: 33
  • Update frequency: every 52.4 days
  • Top authors: davidbaumwald (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,141 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Admin Bug Report
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0341.98 ▲3.05
Dashboard /wp-admin3.32 ▲0.0245.78 ▼1.64
Posts /wp-admin/edit.php3.38 ▲0.0245.82 ▼1.02
Add New Post /wp-admin/post-new.php5.92 ▲0.04102.15 ▲16.87
Media Library /wp-admin/upload.php3.26 ▲0.0333.95 ▼0.55
Admin Bug Report /wp-admin/options-general.php?page=admin-bug-report-settings3.2330.16

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
de_admin_bug_report
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Bug Report
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲12817.36 ▲2.992.02 ▼0.0045.10 ▲5.64
Dashboard /wp-admin2,262 ▲718.26 ▲3.38219.96 ▲114.7538.72 ▼7.43
Posts /wp-admin/edit.php2,171 ▲827.51 ▲5.4681.32 ▲38.5831.74 ▼4.27
Add New Post /wp-admin/post-new.php1,649 ▲13520.36 ▲2.75543.38 ▼141.0434.96 ▼23.30
Media Library /wp-admin/upload.php1,529 ▲1389.46 ▲5.26136.30 ▲34.3240.75 ▼3.37
Admin Bug Report /wp-admin/options-general.php?page=admin-bug-report-settings9227.9890.0731.80

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 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)
Everything seems fine, however this is by no means 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: screenshot, issue, report, admin, bug

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

The main PHP file in "Admin Bug Report" ver. 2.1.0 adds more information about the plugin and also serves as the entry point for this plugin
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 check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected456 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP8128506352
PO File1303498
JavaScript22164
CSS2202

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin