79% codegear-starter

Code Review | Codegear Starter

WordPress plugin Codegear Starter scored79%from 54 tests.

About plugin

  • Plugin page: codegear-starter
  • Plugin version: 1.2.8
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: May 19, 2022
  • Latest release: Nov 22, 2023
  • Number of updates: 28
  • Update frequency: every 19.7 days
  • Top authors: codegearthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,532 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▲1.29ms] Passed 4 tests

This is a short check of server-side resources used by Codegear Starter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2440.50 ▼3.69
Dashboard /wp-admin3.56 ▲0.2548.38 ▲0.43
Posts /wp-admin/edit.php3.67 ▲0.3151.01 ▲4.39
Add New Post /wp-admin/post-new.php6.14 ▲0.2596.83 ▲14.64
Media Library /wp-admin/upload.php3.48 ▲0.2538.13 ▲4.02

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Codegear Starter
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲2314.23 ▼0.041.80 ▼0.2339.79 ▼3.77
Dashboard /wp-admin2,215 ▲385.64 ▲0.0192.57 ▲6.0042.28 ▲2.66
Posts /wp-admin/edit.php2,121 ▲211.98 ▲0.0440.71 ▼0.3836.59 ▼1.17
Add New Post /wp-admin/post-new.php1,540 ▲1423.77 ▲0.61611.68 ▼12.6747.42 ▼0.87
Media Library /wp-admin/upload.php1,420 ▲204.19 ▲0.0495.88 ▼1.5440.77 ▼2.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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/codegear-starter/admin/partials/codegear-starter-admin-display.php
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/codegear-starter/includes/class-codegear-starter-i18n.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/codegear-starter/templates/startupx.php:56
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/codegear-starter/templates/editorx.php:57
    • > PHP Fatal error
      Uncaught Error: Class 'WPImporterLoggerCLI' not found in wp-content/plugins/codegear-starter/import/wp-content-importer-v2/Logger.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/codegear-starter/import/wp-content-importer-v2/WXRImporter.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WPImporterLogger' not found in wp-content/plugins/codegear-starter/import/wp-content-importer-v2/WPImporterLoggerCLI.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/codegear-starter/templates/knote.php:815
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/codegear-starter/includes/class-customizer-option.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codegear-starter/includes/class-import.php:51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/codegear-starter/templates/acoustics.php:51

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: codegearthemes, import, sites, starter, elementor...

codegear-starter/codegear-starter.php Passed 13 tests

"Codegear Starter" version 1.2.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
29 characters long description:
CodeGearThemes starter sites.

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 detected5,722 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP258901,6834,173
CSS2170201,261
JavaScript2626288

PHP code Passed 2 tests

An short overview of 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.37
Average class complexity33.20
▷ Minimum class complexity1.00
▷ Maximum class complexity296.00
Average method complexity5.30
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes16.67%
Methods113
▷ Static methods1412.39%
▷ Public methods6860.18%
▷ Protected methods3530.97%
▷ Private methods108.85%
Functions21
▷ Named functions1885.71%
▷ Anonymous functions314.29%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected