84% easy-access-reusable-blocks

Code Review | Easy Access Reusable Blocks

WordPress plugin Easy Access Reusable Blocks scored 84% from 54 tests.

About plugin

  • Plugin page: easy-access-reusa...
  • Plugin version: 1.0.14
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.9
  • WordPress version: 6.3.1
  • First release: Mar 11, 2021
  • Latest release: Feb 16, 2022
  • Number of updates: 8
  • Update frequency: every 42.8 days
  • Top authors: olein (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active / 2,005 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: ▼10.10ms] Passed 4 tests

This is a short check of server-side resources used by Easy Access Reusable Blocks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.93 ▼5.97
Dashboard /wp-admin3.32 ▲0.0149.44 ▼6.04
Posts /wp-admin/edit.php3.37 ▲0.0151.55 ▼24.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0199.11 ▼1.71
Media Library /wp-admin/upload.php3.25 ▲0.0137.48 ▼3.81

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Easy Access Reusable Blocks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲2313.19 ▼0.061.63 ▲0.0439.76 ▼2.56
Dashboard /wp-admin2,218 ▲124.80 ▼0.08103.19 ▼7.3740.28 ▼2.07
Posts /wp-admin/edit.php2,098 ▲92.00 ▼0.0140.76 ▲1.1736.86 ▲1.94
Add New Post /wp-admin/post-new.php1,543 ▲1023.46 ▲0.23712.42 ▲46.4858.98 ▲0.79
Media Library /wp-admin/upload.php1,400 ▲94.18 ▼0.0797.42 ▼6.2441.22 ▼3.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/easy-access-reusable-blocks/easy-access-reusable-blocks.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
No tags were detected

easy-access-reusable-blocks/easy-access-reusable-blocks.php 92% from 13 tests

The main PHP file in "Easy Access Reusable Blocks" ver. 1.0.14 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.3.5" instead of "5.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected105 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP174447
PO File16832
Markdown110026

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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