83% blockskit

Code Review | Blockskit

WordPress plugin Blockskit scored83%from 54 tests.

About plugin

  • Plugin page: blockskit
  • Plugin version: 0.0.1
  • PHP compatiblity: 7.4.9+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: May 16, 2023
  • Latest release: May 16, 2023
  • Number of updates: 3
  • Update frequency: every 6.0 days
  • Top authors: blockskitdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /88 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

An overview of server-side resources used by Blockskit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.69 ▼0.00
Dashboard /wp-admin3.31 ▼0.0348.17 ▼13.51
Posts /wp-admin/edit.php3.36 ▲0.0147.23 ▼4.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.75 ▼21.93
Media Library /wp-admin/upload.php3.24 ▲0.0143.34 ▲5.89

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Blockskit: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.72 ▼0.721.74 ▲0.1243.06 ▲2.55
Dashboard /wp-admin2,206 ▲215.85 ▼0.01100.95 ▼5.3640.87 ▼6.12
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0136.77 ▼4.4235.55 ▼2.17
Add New Post /wp-admin/post-new.php6,354 ▲4,84027.70 ▲10.29876.65 ▲217.0855.87 ▼1.10
Media Library /wp-admin/upload.php1,385 ▼04.19 ▼0.04102.09 ▼1.0740.98 ▼3.05

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 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/blockskit/blockskit.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("")
  • Screenshots: Screenshot #1 (Block setting) image not found
You can take inspiration from this readme.txt

blockskit/blockskit.php 85% from 13 tests

"Blockskit" version 0.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Domain Path: Please prefix the domain path with a forward slash character ("/")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin38,392 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JSON30038,145
JavaScript43076220
Sass22019
PHP21276
CSS2002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin