84% coder-block

Code Review | Coder Block

WordPress plugin Coder Block scored84%from 54 tests.

About plugin

  • Plugin page: coder-block
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: Oct 14, 2021
  • Latest release: Dec 1, 2023
  • Number of updates: 7
  • Update frequency: every 111.2 days
  • Top authors: sh1zen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /654 total downloads


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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.01ms] Passed 4 tests

Analyzing server-side resources used by Coder Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.57 ▼3.84
Dashboard /wp-admin3.34 ▲0.0444.76 ▼5.72
Posts /wp-admin/edit.php3.39 ▲0.0347.46 ▲3.70
Add New Post /wp-admin/post-new.php5.92 ▲0.0479.09 ▼16.17
Media Library /wp-admin/upload.php3.26 ▲0.0332.52 ▼2.32

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 550 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Coder Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲1814.13 ▼0.221.77 ▼0.2147.15 ▲2.77
Dashboard /wp-admin2,195 ▲215.60 ▼0.0688.16 ▼7.2941.03 ▼2.42
Posts /wp-admin/edit.php2,097 ▼61.95 ▼0.0535.34 ▼4.0933.08 ▼4.24
Add New Post /wp-admin/post-new.php6,281 ▲4,75519.69 ▼3.661,020.74 ▲410.8758.57 ▲7.94
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.10100.76 ▲3.9740.72 ▼0.62

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_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coder-block/coder-block.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: php, snippets, block, functions, code

coder-block/coder-block.php Passed 13 tests

The principal PHP file in "Coder Block" v. 1.0.6 is loaded by WordPress automatically on each request
67 characters long description:
A simple way to share and valuate code within the new Block Editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin53,675 lines of code in 548 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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 images were found in this plugin