84% blockinator

Code Review | Blockinator

WordPress plugin Blockinator scored84%from 54 tests.

About plugin

  • Plugin page: blockinator
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 7, 2018
  • Latest release: Jan 7, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: stoffijn (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /599 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.12ms] Passed 4 tests

This is a short check of server-side resources used by Blockinator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.26 ▼1.05
Dashboard /wp-admin3.35 ▲0.0447.43 ▼8.96
Posts /wp-admin/edit.php3.46 ▲0.1146.97 ▼10.95
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.68 ▼7.52
Media Library /wp-admin/upload.php3.27 ▲0.0442.20 ▲0.43
Blockinator /wp-admin/options-general.php?page=blockinator/blockinator.php3.2432.92

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
blockinator_options
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Blockinator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.23 ▼1.311.58 ▼0.4340.71 ▼6.09
Dashboard /wp-admin2,213 ▲224.87 ▼1.03111.67 ▲7.1840.73 ▲0.00
Posts /wp-admin/edit.php2,096 ▲42.03 ▼0.0139.66 ▼2.4634.59 ▼3.55
Add New Post /wp-admin/post-new.php1,536 ▲123.36 ▲2.35680.43 ▼19.9666.23 ▲7.71
Media Library /wp-admin/upload.php1,392 ▲74.19 ▼0.05113.99 ▲4.3846.51 ▼2.36
Blockinator /wp-admin/options-general.php?page=blockinator/blockinator.php8452.0223.2929.24

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/blockinator/blockinator.php

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: remove feed links, remove version numbers, remove dns prefetch, xmlrpc, remove shortlinks

blockinator/blockinator.php Passed 13 tests

Analyzing the main PHP file in "Blockinator" version 1.0.0
81 characters long description:
This plugin will remove script and version numbers from the source of your pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected179 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24251179

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions770.00%
▷ Anonymous functions330.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
There were not PNG files found in your plugin