89% eazytemplate-template-library

Code Review | EazyTemplates - Gutenberg Template Library

WordPress plugin EazyTemplates - Gutenberg Template Library scored89%from 54 tests.

About plugin

  • Plugin page: eazytemplate-temp...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9
  • WordPress version: 6.3.1
  • First release: Jan 26, 2022
  • Latest release: May 19, 2022
  • Number of updates: 15
  • Update frequency: every 7.6 days
  • Top authors: eazyplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,954 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.81ms] Passed 4 tests

This is a short check of server-side resources used by EazyTemplates - Gutenberg Template Library
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0934.97 ▼5.51
Dashboard /wp-admin3.39 ▲0.0844.84 ▼5.48
Posts /wp-admin/edit.php3.50 ▲0.1449.28 ▲2.81
Add New Post /wp-admin/post-new.php5.97 ▲0.0981.49 ▼8.10
Media Library /wp-admin/upload.php3.31 ▲0.0833.17 ▼0.15

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

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

Browser metrics Passed 4 tests

A check of browser resources used by EazyTemplates - Gutenberg Template Library
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.26 ▼1.021.99 ▼0.0941.08 ▼2.24
Dashboard /wp-admin2,206 ▲184.83 ▼0.04112.84 ▼1.1545.44 ▲0.48
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0038.94 ▲2.0435.38 ▼0.90
Add New Post /wp-admin/post-new.php1,521 ▲722.97 ▲5.42660.75 ▼25.0878.48 ▲31.36
Media Library /wp-admin/upload.php1,385 ▼34.18 ▼0.0496.34 ▲1.8842.65 ▲1.07

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
  • This plugin does not fully uninstall, leaving 8 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • eazytemplates_version
    • theysaidso_admin_options
    • eazytemplates_installed
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

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 issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Screenshots are stored in the), #2 (This is the second screen shot)
The official readme.txt is a good inspiration

eazytemplate-template-library/eazytemplates.php 85% from 13 tests

The entry point to "EazyTemplates - Gutenberg Template Library" version 1.2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("eazytemplate-template-library.php" instead of "eazytemplates.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin727 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP14166477690
CSS11023
JSON70011
JavaScript1013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity13.62
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.02
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods52
▷ Static methods1936.54%
▷ Public methods4994.23%
▷ Protected methods00.00%
▷ Private methods35.77%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.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