83% blocksbuster

Code Review | BlocksBuster

WordPress plugin BlocksBuster scored83%from 54 tests.

About plugin

  • Plugin page: blocksbuster
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 5, 2019
  • Latest release: Feb 5, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: hiddenpearls (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,240 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by BlocksBuster
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.76 ▼5.97
Dashboard /wp-admin3.32 ▲0.0149.70 ▲2.30
Posts /wp-admin/edit.php3.37 ▲0.0145.35 ▼4.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.90 ▼2.21
Media Library /wp-admin/upload.php3.24 ▲0.0136.95 ▲2.38

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for BlocksBuster
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.24 ▼1.342.09 ▼0.0740.28 ▼2.44
Dashboard /wp-admin2,203 ▲125.83 ▲0.85102.34 ▼1.6136.93 ▼7.29
Posts /wp-admin/edit.php2,092 ▲32.03 ▼0.1038.70 ▼2.1134.77 ▼2.66
Add New Post /wp-admin/post-new.php6,354 ▲4,83127.90 ▲4.66923.83 ▲310.3652.57 ▼5.88
Media Library /wp-admin/upload.php1,382 ▼64.19 ▼0.0195.44 ▼4.9242.17 ▼1.09

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Blocks_Buster\\add_action() in wp-content/plugins/blocksbuster/lib/enqueue-scripts.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (coming soon)
You can take inspiration from this readme.txt

blocksbuster/blocks-buster.php 85% from 13 tests

"BlocksBuster" version 0.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("blocksbuster.php" instead of "blocks-buster.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
Good job! No executable or dangerous file extensions detected691 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript102827535
Sass21098
PHP2164456
CSS2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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
Namespaces1
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin