73% bugyard

Code Review | Bugyard

WordPress plugin Bugyard scored 73% from 54 tests.

About plugin

  • Plugin page: bugyard
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Jan 30, 2017
  • Latest release: Jan 30, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: zobione (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 525 total downloads

Benchmarks

Plugin footprint 83% from 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.06MB] [CPU: ▼9.21ms] Passed 4 tests

Server-side resources used by Bugyard
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0427.16 ▼7.91
Dashboard /wp-admin3.36 ▲0.0644.82 ▼3.04
Posts /wp-admin/edit.php3.48 ▲0.1243.92 ▼5.79
Add New Post /wp-admin/post-new.php5.96 ▲0.0887.78 ▼20.11
Media Library /wp-admin/upload.php3.29 ▲0.0637.05 ▲2.33
Bugyard /wp-admin/options-general.php?page=bugyard3.2631.63

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bugyard
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲5113.35 ▼0.962.01 ▲0.0441.67 ▼3.69
Dashboard /wp-admin2,208 ▲205.77 ▲0.7398.31 ▼8.5939.25 ▼4.34
Posts /wp-admin/edit.php2,100 ▲112.00 ▼0.0135.80 ▼4.9931.89 ▼3.10
Add New Post /wp-admin/post-new.php1,535 ▼123.18 ▲0.12674.54 ▲39.2162.49 ▼1.79
Media Library /wp-admin/upload.php1,393 ▲114.21 ▼0.00104.74 ▲7.4447.34 ▲4.31
Bugyard /wp-admin/options-general.php?page=bugyard8132.0631.6425.56

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bugyard
    • > Notice in wp-content/plugins/bugyard/admin/partials/bugyard-admin-display.php+24
    Trying to access array offset on value of type bool

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/bugyard/public/partials/bugyard-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bugyard/admin/partials/bugyard-admin-display.php:20

User-side errors Passed 1 test

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

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
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
The official readme.txt is a good inspiration

bugyard/bugyard.php Passed 13 tests

The main PHP script in "Bugyard" version 1.0.0 is automatically included on every request by WordPress
87 characters long description:
This plugins help you quickly deploy bugyard feedback widget in your wordpress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin229 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12150557223
JavaScript24546
CSS2080

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.14
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.28
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin