89% fast-beavercontrol

Code Review | Fast Beaver Control

WordPress plugin Fast Beaver Control scored89%from 54 tests.

About plugin

  • Plugin page: fast-beavercontrol
  • Plugin version: 1.1.7.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 5, 2019
  • Latest release: Aug 10, 2023
  • Number of updates: 11
  • Update frequency: every 130.6 days
  • Top authors: fastflow (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /976 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Fast Beaver Control
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0333.86 ▼10.70
Dashboard /wp-admin3.32 ▲0.0246.60 ▲0.90
Posts /wp-admin/edit.php3.37 ▲0.0143.90 ▼4.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.14 ▼1.22
Media Library /wp-admin/upload.php3.24 ▲0.0133.48 ▼0.06

Server storage [IO: ▲0.34MB] [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: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fast Beaver Control
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲11714.13 ▼0.2613.61 ▲11.8438.40 ▲0.54
Dashboard /wp-admin2,203 ▲155.83 ▲0.8395.37 ▼7.2138.73 ▼5.15
Posts /wp-admin/edit.php2,089 ▼31.97 ▼0.0336.46 ▼5.7237.07 ▲0.56
Add New Post /wp-admin/post-new.php1,547 ▲3023.13 ▲5.45623.85 ▲4.5356.80 ▼0.77
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.0195.76 ▼6.0940.54 ▼5.82

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt is a good inspiration

fast-beavercontrol/fast-beaver-control.php 92% from 13 tests

The main file in "Fast Beaver Control" v. 1.1.7.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("fast-beavercontrol.php" instead of "fast-beaver-control.php")

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
Everything looks great! No dangerous files found in this plugin5,978 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JSX24788732,481
JavaScript54327082,172
CSS480200948
PHP415058377

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity23.00
▷ Minimum class complexity18.00
▷ Maximum class complexity30.00
Average method complexity4.47
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods1684.21%
▷ Public methods1894.74%
▷ Protected methods00.00%
▷ Private methods15.26%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin