83% block-specific-spam-woo-orders

Code Review | Block Specific Spam Woo Orders

WordPress plugin Block Specific Spam Woo Orders scored83%from 54 tests.

About plugin

  • Plugin page: block-specific-sp...
  • Plugin version: 0.6
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.1
  • WordPress version: 6.3.1
  • First release: Nov 4, 2020
  • Latest release: Oct 29, 2022
  • Number of updates: 8
  • Update frequency: every 90.5 days
  • Top authors: Wigster (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /6,787 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Block Specific Spam Woo Orders
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0049.64 ▲9.80
Dashboard /wp-admin3.31 ▼0.0454.08 ▼12.41
Posts /wp-admin/edit.php3.37 ▲0.0048.48 ▼2.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0084.48 ▼26.92
Media Library /wp-admin/upload.php3.24 ▲0.0044.70 ▲5.92

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Block Specific Spam Woo Orders
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.38 ▼0.291.81 ▲0.0344.14 ▲1.39
Dashboard /wp-admin2,195 ▲155.64 ▼0.0482.76 ▼7.5740.08 ▼5.54
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0335.26 ▼2.9733.77 ▼2.61
Add New Post /wp-admin/post-new.php1,526 ▼517.39 ▼5.90679.54 ▼5.0455.15 ▼1.21
Media Library /wp-admin/upload.php1,400 ▲34.23 ▲0.02113.79 ▲15.3749.13 ▲3.20

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/block-specific-spam-woo-orders/woo-block-spam-orders.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === block-specific-spam-woo-orders === )
You can take inspiration from this readme.txt

block-specific-spam-woo-orders/woo-block-spam-orders.php 77% from 13 tests

The entry point to "Block Specific Spam Woo Orders" version 0.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("block-specific-spam-woo-orders.php" instead of "woo-block-spam-orders.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.1" instead of "4.3")

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 plugin26 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP132326

PHP code Passed 2 tests

A short 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.71
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected