89% blockskit-import

Code Review | Blockskit Import

WordPress plugin Blockskit Import scored89%from 54 tests.

About plugin

  • Plugin page: blockskit-import
  • Plugin version: 0.0.3
  • PHP compatiblity: 4.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Jun 22, 2023
  • Latest release: Aug 22, 2023
  • Number of updates: 5
  • Update frequency: every 12.2 days
  • Top authors: blockskitdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /722 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.08ms] Passed 4 tests

A check of server-side resources used by Blockskit Import
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0649.81 ▲8.29
Dashboard /wp-admin3.36 ▲0.0549.80 ▼8.62
Posts /wp-admin/edit.php3.41 ▲0.0547.43 ▼4.11
Add New Post /wp-admin/post-new.php5.94 ▲0.0597.40 ▼0.29
Media Library /wp-admin/upload.php3.28 ▲0.0537.35 ▼3.29
Demo Import /wp-admin/themes.php?page=advanced-import3.2533.33

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/blockskit-import/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Blockskit Import
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲3313.25 ▼1.541.84 ▼0.2738.43 ▼8.10
Dashboard /wp-admin2,225 ▲195.86 ▼0.04103.07 ▼6.0640.36 ▼5.02
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0439.67 ▼4.9634.13 ▼2.07
Add New Post /wp-admin/post-new.php1,548 ▲2223.39 ▲5.66665.71 ▼40.6660.30 ▼4.22
Media Library /wp-admin/upload.php1,404 ▲74.25 ▲0.1095.27 ▼5.4545.09 ▼2.23
Demo Import /wp-admin/themes.php?page=advanced-import7902.0327.1129.94

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: demo data importer, one click demo import, demo data

blockskit-import/blockskit-import.php 92% from 13 tests

This is the main PHP file of "Blockskit Import" version 0.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
There were no executable files found in this plugin307 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP25199220
CSS16064
JavaScript15523

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity3.91
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin