89% blocks-export-import

Code Review | Blocks Export Import

WordPress plugin Blocks Export Import scored89%from 54 tests.

About plugin

  • Plugin page: blocks-export-import
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Jan 4, 2019
  • Latest release: Sep 21, 2023
  • Number of updates: 54
  • Update frequency: every 31.9 days
  • Top authors: themeisle (94.44%)hardeepasrani (7.41%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /6,818 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.08ms] Passed 4 tests

A check of server-side resources used by Blocks Export Import
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.08 ▼2.14
Dashboard /wp-admin3.32 ▼0.0351.64 ▼12.16
Posts /wp-admin/edit.php3.38 ▲0.0148.10 ▼6.73
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.55 ▼18.05
Media Library /wp-admin/upload.php3.25 ▲0.0131.28 ▼3.37

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Blocks Export Import
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.211.81 ▲0.2043.26 ▲2.02
Dashboard /wp-admin2,195 ▲185.63 ▲0.0287.14 ▼10.0237.68 ▼4.22
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0135.49 ▼6.4834.76 ▼5.58
Add New Post /wp-admin/post-new.php6,190 ▲4,66419.05 ▼3.97886.58 ▲171.1062.94 ▲12.25
Media Library /wp-admin/upload.php1,400 ▼04.31 ▲0.1098.99 ▼6.7744.89 ▼4.23

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

blocks-export-import/blocks-export-import.php 92% from 13 tests

The main PHP script in "Blocks Export Import" version 1.2.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

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 plugin4,460 lines of code in 63 files:
LanguageFilesBlank linesComment linesLines of code
JSON58004,383
PHP3167354
Markdown110022
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected