84% superbuzz

Code Review | SuperBuzz

WordPress plugin SuperBuzz scored84%from 54 tests.

About plugin

  • Plugin page: superbuzz
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.2
  • WordPress version: 6.3.1
  • First release: Sep 28, 2023
  • Latest release: Sep 28, 2023
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: superbuzz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /47 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.50ms] Passed 4 tests

An overview of server-side resources used by SuperBuzz
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.89 ▼0.86
Dashboard /wp-admin3.32 ▲0.0253.06 ▼0.89
Posts /wp-admin/edit.php3.37 ▲0.0154.35 ▲5.70
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.40 ▼6.25
Media Library /wp-admin/upload.php3.24 ▲0.0137.66 ▲2.01

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: 1 new table, 7 new options
New tables
wp_superbuzz
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
superbuzz_version
widget_recent-posts

Browser metrics Passed 4 tests

SuperBuzz: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.22 ▼0.501.92 ▲0.2742.54 ▼3.52
Dashboard /wp-admin2,213 ▲365.54 ▼0.1293.39 ▼2.6075.78 ▲33.01
Posts /wp-admin/edit.php2,118 ▲182.04 ▼0.0633.90 ▼5.8834.28 ▼3.34
Add New Post /wp-admin/post-new.php1,548 ▲2223.25 ▼0.30720.29 ▲40.5151.33 ▼3.66
Media Library /wp-admin/upload.php1,418 ▲244.20 ▼0.0298.69 ▼0.1865.59 ▲22.32

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/superbuzz/uninstall.php
    • > /wp-content/plugins/superbuzz/superbuzz.php
    • > /wp-content/plugins/superbuzz/includes/class-custom-post-type-superbuzz.php
    • > /wp-content/plugins/superbuzz/includes/autoloading.php
    • > /wp-content/plugins/superbuzz/includes/class-custom-css-and-js.php
    • > /wp-content/plugins/superbuzz/includes/class-init.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

superbuzz/superbuzz.php Passed 13 tests

The principal PHP file in "SuperBuzz" v. 1.2.0 is loaded by WordPress automatically on each request
71 characters long description:
SuperBuzz - Boost retention traffic and profits using GPT-3 technology.

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
There were no executable files found in this plugin572 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP68130332
CSS1376179
JavaScript26261

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/superbuzzicon.png1.98KB1.17KB▼ 40.94%
assets/images/superbuzzlogo.png9.81KB5.55KB▼ 43.46%