90% themezee-magazine-blocks

Code Review | ThemeZee Magazine Blocks

WordPress plugin ThemeZee Magazine Blocks scored90%from 54 tests.

About plugin

  • Plugin page: themezee-magazine...
  • Plugin version: 1.3.2
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.3-6.3.2
  • WordPress version: 6.3.1
  • First release: Aug 16, 2019
  • Latest release: Oct 22, 2023
  • Number of updates: 16
  • Update frequency: every 95.6 days
  • Top authors: ThemeZee (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

7,000+ active /68,451 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.03ms] Passed 4 tests

A check of server-side resources used by ThemeZee Magazine Blocks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0032.69 ▼3.35
Dashboard /wp-admin3.31 ▼0.0446.21 ▼11.45
Posts /wp-admin/edit.php3.36 ▲0.0043.02 ▼5.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.34 ▼12.04
Media Library /wp-admin/upload.php3.23 ▲0.0036.48 ▲6.13

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

ThemeZee Magazine Blocks: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.32 ▼0.111.62 ▼0.1941.59 ▲3.20
Dashboard /wp-admin2,195 ▲185.70 ▲0.0384.69 ▼6.3935.52 ▼2.68
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0135.66 ▲0.8330.64 ▼8.93
Add New Post /wp-admin/post-new.php1,526 ▼023.65 ▲0.69680.60 ▲17.4657.78 ▲9.78
Media Library /wp-admin/upload.php1,400 ▲34.21 ▲0.0497.32 ▲0.7741.55 ▼3.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive 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)
There were no browser issues found

Optimizations

Plugin configuration Passed 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
7 plugin tags: editor, themezee, gutenberg, magazine, magazine blocks...

themezee-magazine-blocks/themezee-magazine-blocks.php Passed 13 tests

The main file in "ThemeZee Magazine Blocks" v. 1.3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
60 characters long description:
Flexible Magazine Blocks for the new WordPress Block Editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin960 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP14220375491
JSON600441
JavaScript601016
CSS92012

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity12.67
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods28
▷ Static methods28100.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/images/default-featured-image.png13.86KB4.54KB▼ 67.20%