90% athemes-blocks

Code Review | aThemes Blocks

WordPress plugin aThemes Blocks scored90%from 54 tests.

About plugin

  • Plugin page: athemes-blocks
  • Plugin version: 1.0.10
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 20, 2021
  • Latest release: Feb 22, 2023
  • Number of updates: 15
  • Update frequency: every 39.1 days
  • Top authors: maaprote (86.67%)athemes (20%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active /124,931 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.91ms] Passed 4 tests

Server-side resources used by aThemes Blocks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1243.34 ▲0.23
Dashboard /wp-admin3.41 ▲0.1148.05 ▼8.07
Posts /wp-admin/edit.php3.53 ▲0.1748.18 ▼2.04
Add New Post /wp-admin/post-new.php6.02 ▲0.1389.65 ▼9.76
Media Library /wp-admin/upload.php3.33 ▲0.1138.46 ▲0.91

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for aThemes Blocks
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.39 ▲0.041.69 ▼0.1144.02 ▲1.08
Dashboard /wp-admin2,189 ▲155.62 ▲0.0595.61 ▼4.3041.78 ▲0.21
Posts /wp-admin/edit.php2,100 ▼02.15 ▲0.1541.16 ▲5.8234.70 ▼5.20
Add New Post /wp-admin/post-new.php6,212 ▲4,67619.61 ▼3.44935.63 ▲275.3855.96 ▲4.86
Media Library /wp-admin/upload.php1,403 ▲34.19 ▲0.0595.79 ▼16.5044.94 ▼5.67

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Congratulations! This plugin passed the SRP test

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: blocks, gutenberg, sites, athemes

athemes-blocks/athemes-blocks.php Passed 13 tests

The primary PHP file in "aThemes Blocks" version 1.0.10 is used by WordPress to initiate all plugin functionality
88 characters long description:
aThemes Blocks is a Gutenberg plugin extending the WordPress editor with awesome blocks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected820 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP5124137600
JavaScript54331216
CSS2004

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity17.50
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity4.88
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods17
▷ Static methods635.29%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.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
There were not PNG files found in your plugin