89% blocks-by-projects-engine

Code Review | Blocks by Projects Engine

WordPress plugin Blocks by Projects Engine scored89%from 54 tests.

About plugin

  • Plugin page: blocks-by-project...
  • Plugin version: 2.0.1
  • PHP compatiblity: 7.3.9+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 2, 2021
  • Latest release: Jun 4, 2023
  • Number of updates: 130
  • Update frequency: every 5.4 days
  • Top authors: dragipostolovski (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /881 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
Installer ran successfully

Server metrics [RAM: ▼0.22MB] [CPU: ▼11.85ms] Passed 4 tests

Server-side resources used by Blocks by Projects Engine
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.61 ▼5.05
Dashboard /wp-admin3.35 ▲0.0545.66 ▼3.48
Posts /wp-admin/edit.php3.46 ▲0.1148.16 ▲1.87
Add New Post /wp-admin/post-new.php4.86 ▼1.0254.50 ▼39.99
Media Library /wp-admin/upload.php3.27 ▲0.0434.00 ▲1.13

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Blocks by Projects Engine
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.67 ▼0.051.50 ▼0.2336.92 ▼10.99
Dashboard /wp-admin2,195 ▲155.57 ▼0.0588.68 ▲0.6339.98 ▼3.57
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0139.53 ▼1.3535.95 ▲0.22
Add New Post /wp-admin/post-new.php6,377 ▲4,85128.25 ▲4.84819.72 ▲192.3367.52 ▲18.24
Media Library /wp-admin/upload.php1,400 ▼34.21 ▲0.0498.86 ▲2.3142.24 ▼1.53

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

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

Smoke tests Passed 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 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: block, gutenberg, editor, blocks, heading

blocks-by-projects-engine/index.php 85% from 13 tests

The main PHP file in "Blocks by Projects Engine" ver. 2.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 214 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("blocks-by-projects-engine.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected33,151 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JSON20032,261
JavaScript42526570
PHP975321187
Sass212054
CSS44246
Markdown14033

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.67
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.16
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods50
▷ Static methods00.00%
▷ Public methods3060.00%
▷ Protected methods00.00%
▷ Private methods2040.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin