79% mailbuzz

Code Review | Mailbuzz

WordPress plugin Mailbuzz scored79%from 54 tests.

About plugin

  • Plugin page: mailbuzz
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 11, 2023
  • Latest release: Mar 11, 2023
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: mailbuzz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /104 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.16ms] Passed 4 tests

Analyzing server-side resources used by Mailbuzz
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.25 ▼4.76
Dashboard /wp-admin3.38 ▲0.0746.77 ▲0.81
Posts /wp-admin/edit.php3.49 ▲0.1345.85 ▼5.27
Add New Post /wp-admin/post-new.php5.96 ▲0.0781.77 ▼3.43
Media Library /wp-admin/upload.php3.30 ▲0.0740.23 ▲6.07

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mailbuzz
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲12713.49 ▼1.079.84 ▲8.0847.42 ▲4.46
Dashboard /wp-admin2,208 ▲345.64 ▲0.0896.78 ▲12.0242.73 ▲1.23
Posts /wp-admin/edit.php2,119 ▲191.99 ▼0.0434.24 ▼3.1133.34 ▼2.64
Add New Post /wp-admin/post-new.php1,539 ▲1323.34 ▲0.39682.90 ▲33.1654.50 ▲4.53
Media Library /wp-admin/upload.php1,419 ▲284.25 ▲0.0398.33 ▼10.1241.63 ▼6.91

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/mailbuzz/admin/partials/wp-react-plugin-boilerplate-admin-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mailbuzz_get_options() in wp-content/plugins/mailbuzz/public/partials/mailbuzz-public-display.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: email marketing, email, rss, automation, mailbuzz...

mailbuzz/mailbuzz.php Passed 13 tests

The principal PHP file in "Mailbuzz" v. 1.0.0 is loaded by WordPress automatically on each request
30 characters long description:
Automate your email marketing.

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
Everything looks great! No dangerous files found in this plugin41,789 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JSON20036,968
CSS591644,353
PHP15117631395
JavaScript212173

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity1.62
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.18
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2278.57%
▷ Protected methods00.00%
▷ Private methods621.43%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected