84% be-boost

Code Review | Be Boost

WordPress plugin Be Boost scored84%from 54 tests.

About plugin

  • Plugin page: be-boost
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Sep 22, 2020
  • Latest release: Aug 14, 2023
  • Number of updates: 12
  • Update frequency: every 88.0 days
  • Top authors: nalam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /6,162 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▲1.30ms] Passed 4 tests

This is a short check of server-side resources used by Be Boost
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.18 ▲2.39
Dashboard /wp-admin3.35 ▲0.0547.73 ▲1.61
Posts /wp-admin/edit.php3.40 ▲0.0445.20 ▲3.02
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.17 ▼0.08
Media Library /wp-admin/upload.php3.27 ▲0.0435.34 ▲1.28

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Be Boost
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▼0.061.70 ▼0.1144.72 ▲4.37
Dashboard /wp-admin2,206 ▲144.85 ▼0.17114.55 ▲7.8044.27 ▲0.43
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0233.74 ▼0.5434.29 ▲0.79
Add New Post /wp-admin/post-new.php1,520 ▼1823.04 ▼0.14635.92 ▼7.5858.30 ▲2.20
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0294.14 ▼4.0147.71 ▲3.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/be-boost/includes/share-icons.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/be-boost/includes/improt-code.php:92

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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:
  • Screenshots: Please add images for these screenshots: #1 (After activate the plugin you will see 5 share button in your single product page.), #2 (After you can click to share the product .)
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

be-boost/be-boost.php Passed 13 tests

The main file in "Be Boost" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
29 characters long description:
The plugin for share porducts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin38,732 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
XML449681838,394
PHP353130176
CSS31326115
SVG10047

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin