90% wp-blockade

Code Review | WP Blockade - Visual Page Builder

WordPress plugin WP Blockade - Visual Page Builder scored90%from 54 tests.

About plugin

  • Plugin page: wp-blockade
  • Plugin version: 0.9.14
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Jan 12, 2017
  • Latest release: Apr 25, 2018
  • Number of updates: 24
  • Update frequency: every 19.4 days
  • Top authors: burlingtonbytes (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /5,841 total downloads

Benchmarks

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

This is a short check of server-side resources used by WP Blockade - Visual Page Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2442.57 ▲5.78
Dashboard /wp-admin3.58 ▲0.2746.95 ▼0.76
Posts /wp-admin/edit.php3.63 ▲0.2749.58 ▲0.61
Add New Post /wp-admin/post-new.php5.09 ▼0.8065.25 ▼20.19
Media Library /wp-admin/upload.php3.54 ▲0.3137.87 ▲4.66

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 86 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP Blockade - Visual Page Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲15013.54 ▼1.219.25 ▲7.4539.80 ▲0.83
Dashboard /wp-admin2,209 ▲245.79 ▼0.13108.60 ▼8.2340.64 ▼7.30
Posts /wp-admin/edit.php2,071 ▼212.05 ▲0.0537.81 ▼0.5935.34 ▼2.21
Add New Post /wp-admin/post-new.php1,545 ▲2418.29 ▼5.12602.84 ▼26.6257.79 ▼1.27
Media Library /wp-admin/upload.php1,394 ▲94.15 ▼0.0698.03 ▼4.1042.57 ▼0.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
The official readme.txt might help

wp-blockade/wp-blockade.php Passed 13 tests

The principal PHP file in "WP Blockade - Visual Page Builder" v. 0.9.14 is loaded by WordPress automatically on each request
81 characters long description:
Lightweight and intuitive Visual Editor for Designers, Developers, and End Users.

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
Success! There were no dangerous files found in this plugin12,483 lines of code in 63 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript291,54484710,266
PHP1368157975
CSS153239916
SVG100288
Markdown10020
Sass40018

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.85
▷ Minimum class complexity2.00
▷ Maximum class complexity92.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods67
▷ Static methods1522.39%
▷ Public methods4770.15%
▷ Protected methods00.00%
▷ Private methods2029.85%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
addons/simple-columns/icons/cols-9-3.png0.17KB0.11KB▼ 37.08%
addons/simple-columns/icons/cols-8-4.png0.16KB0.10KB▼ 35.37%
addons/simple-columns/icons/cols-3-9.png0.18KB0.11KB▼ 37.78%
addons/simple-columns/icons/cols-6-3-3.png0.18KB0.12KB▼ 34.97%
addons/simple-columns/icons/cols-4-8.png0.17KB0.11KB▼ 32.76%