93% iblocks

Code Review | IBlocks

WordPress plugin IBlocks scored 93% from 54 tests.

About plugin

  • Plugin page: iblocks
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.2-3.3
  • WordPress version: 5.9.2
  • First release: Nov 12, 2011
  • Latest release: Dec 14, 2011
  • Number of updates: 26
  • Update frequency: every 2.0 days
  • Top authors: nimeshrmr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,035 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼294.47ms] Passed 4 tests

Analyzing server-side resources used by IBlocks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0762.29 ▲10.86
Dashboard /wp-admin3.44 ▲0.0332.77 ▲0.47
Posts /wp-admin/edit.php3.67 ▲0.0339.41 ▲1.10
Add New Post /wp-admin/post-new.php6.91 ▼0.0693.77 ▼1,179.83
Media Library /wp-admin/upload.php3.33 ▲0.0325.61 ▲0.38

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

IBlocks: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,864 ▲11016.33 ▲0.7511.78 ▲6.1117.53 ▲14.94
Dashboard /wp-admin2,895 ▲416.11 ▼0.05118.08 ▼15.59151.64 ▼6.48
Posts /wp-admin/edit.php2,691 ▼33.23 ▲0.0063.32 ▲0.03143.59 ▲2.54
Add New Post /wp-admin/post-new.php1,711 ▼021.10 ▲0.01412.21 ▼0.64151.71 ▼9.29
Media Library /wp-admin/upload.php1,698 ▼05.52 ▲0.03135.83 ▼3.17181.51 ▼7.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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 no errors were found, this is by no means an exhaustive test

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iblocks/iblocks.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === iblocks === )
  • Screenshots: These screenshots require images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png)
Please take inspiration from this readme.txt

iblocks/iblocks.php Passed 13 tests

The main PHP script in "IBlocks" version 1.1 is automatically included on every request by WordPress
34 characters long description:
Innovative Blog Design Components.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,038 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP622946518
CSS5719419
JavaScript1430101

PHP code Passed 2 tests

A short 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.27
Average class complexity14.00
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.61MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/squared_black_start.png0.20KB0.33KB0.00%
images/squared_black_end.png0.19KB0.33KB0.00%
screenshot-2.png12.72KB4.97KB▼ 60.88%
screenshot-4.png382.96KB135.35KB▼ 64.66%
screenshot-1.png200.25KB59.58KB▼ 70.25%