83% gradient-starter-templates

Code Review | Starter Templates by Gradient Themes

WordPress plugin Starter Templates by Gradient Themes scored83%from 54 tests.

About plugin

  • Plugin page: gradient-starter-...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Jan 7, 2022
  • Latest release: Nov 17, 2023
  • Number of updates: 19
  • Update frequency: every 36.3 days
  • Top authors: gradientthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

6,000+ active /66,053 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Starter Templates by Gradient Themes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1236.22 ▼2.42
Dashboard /wp-admin3.44 ▲0.0950.04 ▼7.10
Posts /wp-admin/edit.php3.55 ▲0.1950.14 ▲4.66
Add New Post /wp-admin/post-new.php6.02 ▲0.1389.93 ▲5.98
Media Library /wp-admin/upload.php3.36 ▲0.1334.94 ▲2.27

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options
__gradient_starter_templates_do_redirect
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Starter Templates by Gradient Themes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3414.17 ▼0.541.74 ▼0.2542.67 ▲0.56
Dashboard /wp-admin2,208 ▲315.63 ▲0.0091.85 ▲2.0141.53 ▼0.81
Posts /wp-admin/edit.php2,116 ▲162.00 ▲0.0642.12 ▲4.5737.28 ▼0.21
Add New Post /wp-admin/post-new.php1,537 ▲1123.20 ▲0.12607.30 ▼81.5651.96 ▼17.56
Media Library /wp-admin/upload.php1,413 ▲134.17 ▼0.0898.70 ▼6.8342.54 ▼2.42

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • __gradient_starter_templates_do_redirect

Smoke tests 75% from 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 50% from 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/gradient-starter-templates/gradient-starter-templates.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid url: "gradientthemes.com"
  • Screenshots: Add an image for screenshot #1 (Gradient Sterter Templates)
You can look at the official readme.txt

gradient-starter-templates/gradient-starter-templates.php 92% from 13 tests

The main PHP script in "Starter Templates by Gradient Themes" version 1.2.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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 detected701 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP9226510603
CSS15056
JavaScript15523
JSON190019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity6.57
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods33
▷ Static methods618.18%
▷ Public methods2987.88%
▷ Protected methods00.00%
▷ Private methods412.12%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
5 compressed PNG files occupy 0.95MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/demo-data/common/brand-shop/screenshot.png213.31KB206.94KB▼ 2.99%
includes/demo-data/common/hotel-and-travel/screenshot.png274.83KB274.41KB0.15%
includes/demo-data/common/news-blog/screenshot.png165.47KB159.86KB▼ 3.39%
includes/demo-data/common/business-agency/screenshot.png200.14KB195.76KB▼ 2.19%
includes/demo-data/common/best-shop/screenshot.png120.31KB114.83KB▼ 4.56%