84% fazbuzz

Code Review | Fazbuzz

WordPress plugin Fazbuzz scored84%from 54 tests.

About plugin

  • Plugin page: fazbuzz
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.9.5
  • WordPress version: 6.3.1
  • First release: Jun 11, 2018
  • Latest release: Jan 27, 2020
  • Number of updates: 12
  • Update frequency: every 52.5 days
  • Top authors: developerpixit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▼0.66MB] [CPU: ▼18.37ms] Passed 4 tests

Server-side resources used by Fazbuzz
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.06 ▲1.35
Dashboard /wp-admin3.34 ▼0.0145.69 ▼12.23
Posts /wp-admin/edit.php3.39 ▲0.0343.00 ▼6.12
Add New Post /wp-admin/post-new.php3.21 ▼2.6835.83 ▼55.23
Media Library /wp-admin/upload.php3.26 ▲0.0333.75 ▲0.11

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Fazbuzz
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10114.29 ▼0.062.32 ▲0.5442.06 ▼3.63
Dashboard /wp-admin2,210 ▲335.55 ▼0.1182.72 ▼7.4535.53 ▼7.03
Posts /wp-admin/edit.php2,121 ▲242.00 ▼0.0435.28 ▼3.2535.04 ▲1.28
Add New Post /wp-admin/post-new.php1,549 ▲2318.40 ▼2.73626.02 ▼70.3377.95 ▲17.37
Media Library /wp-admin/upload.php1,418 ▲214.15 ▼0.05102.62 ▲1.3847.65 ▲2.20

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
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • FAZBUZZ_VERSION
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fazbuzz/fazbuzz.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/fazbuzz/admin/class-fazbuzz.php:116
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/fazbuzz/admin/fazbuzz.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: comments, spam

fazbuzz/fazbuzz.php Passed 13 tests

This is the main PHP file of "Fazbuzz" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
18 characters long description:
Fazbuzz Api Plugin

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
Success! There were no dangerous files found in this plugin399 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP54035187
JavaScript3352155
CSS13044
PO File10213

PHP code Passed 2 tests

This is a very shot 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.24
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 functions777.78%
▷ Anonymous functions222.22%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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
admin/images/logo.png7.10KB4.70KB▼ 33.71%
admin/images/check_mark.png3.72KB1.84KB▼ 50.51%