77% fogata-bots

Code Review | Fogata BOTS

WordPress plugin Fogata BOTS scored77%from 54 tests.

About plugin

  • Plugin page: fogata-bots
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.5
  • WordPress version: 6.3.1
  • First release: Jul 30, 2018
  • Latest release: May 31, 2019
  • Number of updates: 38
  • Update frequency: every 8.1 days
  • Top authors: heduluna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,205 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by Fogata BOTS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0728.88 ▼9.75
Dashboard /wp-admin3.31 ▲0.0143.49 ▼5.68
Posts /wp-admin/edit.php3.36 ▲0.0051.75 ▲1.74
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.26 ▲2.46
Media Library /wp-admin/upload.php3.23 ▲0.0035.66 ▲2.58

Server storage [IO: ▲0.60MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Fogata BOTS
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,083 ▲34814.37 ▲0.0613.48 ▲11.3343.29 ▼5.47
Dashboard /wp-admin2,223 ▲354.91 ▲0.04100.58 ▼9.2180.80 ▲37.57
Posts /wp-admin/edit.php2,106 ▲142.08 ▲0.0640.23 ▼2.2934.64 ▼2.08
Add New Post /wp-admin/post-new.php1,683 ▲16922.44 ▲4.99750.11 ▲55.8562.84 ▲9.96
Media Library /wp-admin/upload.php1,405 ▲204.29 ▲0.03107.92 ▲9.7644.79 ▲3.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/fogata-bots/fogata-bot-plugin.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fogata-bots/includes/widget.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fogata-bots/includes/admin.php:3

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

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

fogata-bots/fogata-bot-plugin.php 77% from 13 tests

Analyzing the main PHP file in "Fogata BOTS" version 1.2
It is important to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Description: Please don't use more than 140 characters for the plugin description (currently 227 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("fogata-bots.php" instead of "fogata-bot-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,220 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS55924665
PHP39023328
JavaScript47125227

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
2 PNG files occupy 0.04MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo-fogata-bot.png17.92KB0.52KB▼ 97.08%
images/logo-fogata.png20.47KB2.12KB▼ 89.64%