83% wpmk-block

Code Review | WPMK Block

WordPress plugin WPMK Block scored83%from 54 tests.

About plugin

  • Plugin page: wpmk-block
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.8.1
  • WordPress version: 6.3.1
  • First release: Sep 3, 2018
  • Latest release: Oct 26, 2021
  • Number of updates: 12
  • Update frequency: every 95.8 days
  • Top authors: wpmkorg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /692 total downloads


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.06MB] [CPU: ▼5.96ms] Passed 4 tests

An overview of server-side resources used by WPMK Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.72 ▼0.79
Dashboard /wp-admin3.37 ▲0.0247.46 ▼8.25
Posts /wp-admin/edit.php3.48 ▲0.1346.37 ▲3.14
Add New Post /wp-admin/post-new.php5.95 ▲0.0784.60 ▼11.24
Media Library /wp-admin/upload.php3.30 ▲0.0734.11 ▼3.56
WPMK Block /wp-admin/edit.php?post_type=wpmk-block3.3434.38
Add New Block /wp-admin/post-new.php?post_type=wpmk-block3.4142.55

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

WPMK Block: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7514.10 ▼0.251.65 ▲0.0840.84 ▼2.06
Dashboard /wp-admin2,221 ▲545.52 ▼0.0182.46 ▼12.3640.66 ▼6.64
Posts /wp-admin/edit.php2,127 ▲271.99 ▼0.0334.00 ▼4.2335.42 ▲1.85
Add New Post /wp-admin/post-new.php1,552 ▲2623.15 ▲0.21676.39 ▲3.7950.02 ▼0.97
Media Library /wp-admin/upload.php1,430 ▲274.21 ▲0.0195.91 ▼14.4045.46 ▲0.48
WPMK Block /wp-admin/edit.php?post_type=wpmk-block1,0941.9531.2731.54
Add New Block /wp-admin/post-new.php?post_type=wpmk-block2,1847.57184.8871.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_wpmk_block_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpmk-block/classes/wpmk-block-tinymce-class.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpmk-block/classes/wpmk-block-class.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpmk-block/widgets/wpmk-widget.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wpmk-block/wpmk-block.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpmk-block/classes/wpmk-block-vc-shortcodes-class.php:14

User-side errors Passed 1 test

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


Plugin configuration 87% 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
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (WordPress Tinymce Editor), #2 (Visual Composer Editor), #3 (Widget)
  • Requires php: Invalid version format
Please take inspiration from this readme.txt

wpmk-block/wpmk-block.php 85% from 13 tests

The main file in "WPMK Block" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 199 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 plugin254 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.50
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.94MB with 0.55MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png86.97KB40.04KB▼ 53.97%
screenshot-1.png127.40KB53.70KB▼ 57.85%
screenshot-2.png750.80KB273.28KB▼ 63.60%