84% buglog

Code Review | Buglog

WordPress plugin Buglog scored84%from 54 tests.

About plugin

  • Plugin page: buglog
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 10, 2021
  • Latest release: Mar 10, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: kutkin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /408 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.02MB] [CPU: ▼7.03ms] Passed 4 tests

An overview of server-side resources used by Buglog
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.68 ▲2.79
Dashboard /wp-admin3.34 ▼0.0147.73 ▼8.97
Posts /wp-admin/edit.php3.46 ▲0.1045.94 ▼0.47
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.25 ▼18.66
Media Library /wp-admin/upload.php3.27 ▲0.0335.08 ▼0.03

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Buglog
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6114.35 ▼0.001.68 ▼0.2944.57 ▲2.83
Dashboard /wp-admin2,213 ▲335.62 ▲0.0381.04 ▼3.9539.11 ▼1.62
Posts /wp-admin/edit.php2,118 ▲211.96 ▼0.0633.70 ▲0.0733.30 ▼1.51
Add New Post /wp-admin/post-new.php1,541 ▲1523.30 ▲0.14648.39 ▲50.3347.95 ▼0.42
Media Library /wp-admin/upload.php1,418 ▲184.18 ▼0.0295.36 ▲0.4844.62 ▲3.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/buglog/admin/partials/buglog-admin-display.php:4

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Requires php: Version not formatted correctly
The official readme.txt might help

buglog/buglog.php Passed 13 tests

This is the main PHP file of "Buglog" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
Plugin allows you to integrate Buglog into your website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin229 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP9457184
CSS17045

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.26
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1982.61%
▷ Protected methods00.00%
▷ Private methods417.39%
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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin