84% bugplug-by-omatum

Code Review | BugPlug by OMATUM

WordPress plugin BugPlug by OMATUM scored84%from 54 tests.

About plugin

  • Plugin page: bugplug-by-omatum
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-4.8.3
  • WordPress version: 6.3.1
  • First release: Nov 29, 2017
  • Latest release: Nov 29, 2017
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: joshuaperk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /698 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.17ms] Passed 4 tests

An overview of server-side resources used by BugPlug by OMATUM
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.62 ▲0.34
Dashboard /wp-admin3.32 ▼0.0246.44 ▼9.63
Posts /wp-admin/edit.php3.37 ▲0.0244.05 ▼3.87
Add New Post /wp-admin/post-new.php5.90 ▲0.0279.09 ▼19.53
Media Library /wp-admin/upload.php3.25 ▲0.0235.43 ▲0.96

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 11 new options
New WordPress options
bugplug_board
widget_recent-comments
bugplug_switch
widget_recent-posts
can_compress_scripts
db_upgraded
bugplug_color
bugplug_api_key
bugplug_vars
theysaidso_admin_options
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for BugPlug by OMATUM
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.24 ▼1.131.76 ▼0.0343.65 ▲1.43
Dashboard /wp-admin2,220 ▲295.84 ▲0.92113.07 ▲10.8377.14 ▲36.59
Posts /wp-admin/edit.php2,097 ▲82.01 ▲0.0241.56 ▲4.3537.23 ▲5.18
Add New Post /wp-admin/post-new.php1,533 ▲1422.98 ▼0.26746.89 ▲71.7056.64 ▼4.70
Media Library /wp-admin/upload.php1,399 ▲114.14 ▼0.07116.30 ▲20.6048.27 ▲1.60

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
These items require your attention
  • This plugin does not fully uninstall, leaving 11 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • bugplug_vars
    • bugplug_api_key
    • bugplug_switch
    • widget_theysaidso_widget
    • bugplug_color
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bugplug-by-omatum/admin.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bugplug-by-omatum/plugin.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in bugplug-by-omatum/assets to your readme.txt
Please take inspiration from this readme.txt

bugplug-by-omatum/plugin.php 92% from 13 tests

The primary PHP file in "BugPlug by OMATUM" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bugplug-by-omatum.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin102 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP29981
Markdown15021

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.34KB0.81KB▼ 39.62%