78% starter-sites

Code Review | Starter Sites

WordPress plugin Starter Sites scored78%from 54 tests.

About plugin

  • Plugin page: starter-sites
  • Plugin version: 1.5.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2
  • WordPress version: 6.3.1
  • First release: Jun 19, 2020
  • Latest release: Mar 31, 2023
  • Number of updates: 13
  • Update frequency: every 78.1 days
  • Top authors: uxl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /27,496 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.61MB] [CPU: ▼2.22ms] Passed 4 tests

This is a short check of server-side resources used by Starter Sites
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.12 ▲0.6544.26 ▲5.39
Dashboard /wp-admin3.93 ▲0.6353.31 ▲5.09
Posts /wp-admin/edit.php3.99 ▲0.6348.48 ▼1.87
Add New Post /wp-admin/post-new.php6.45 ▲0.5683.61 ▼17.48
Media Library /wp-admin/upload.php3.86 ▲0.6241.30 ▲9.84
Starter Sites /wp-admin/themes.php?page=starter-sites3.9538.22

Server storage [IO: ▲0.21MB] [DB: ▲0.02MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for Starter Sites
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.22 ▼0.141.69 ▲0.0947.74 ▲6.82
Dashboard /wp-admin2,199 ▲195.59 ▼0.0783.81 ▼0.3036.73 ▼8.98
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0735.42 ▲0.6632.88 ▼5.14
Add New Post /wp-admin/post-new.php1,529 ▲323.33 ▲0.38685.03 ▲57.7369.56 ▲10.37
Media Library /wp-admin/upload.php1,407 ▲104.18 ▼0.0194.07 ▼5.4844.21 ▲3.88
Starter Sites /wp-admin/themes.php?page=starter-sites1,8111.8231.6060.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/starter-sites/starter-sites.php
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'HM_WP_Importer_Logger' not found in wp-content/plugins/starter-sites/inc/importer/class-logger-cli.php:3
    • > PHP Warning
      require(WPSS_PATHinc/importer/class-logger.php): failed to open stream: No such file or directory in wp-content/plugins/starter-sites/inc/class-wpss-logger.php on line 9
    • > PHP Warning
      Use of undefined constant WPSS_PATH - assumed 'WPSS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/starter-sites/inc/class-wpss-wxr-importer.php on line 11
    • > PHP Warning
      Use of undefined constant WPSS_PATH - assumed 'WPSS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/starter-sites/inc/class-wpss-logger.php on line 9
    • > PHP Fatal error
      require(): Failed opening required 'WPSS_PATHinc/class-wpss-helpers.php' (include_path='.:/usr/share/php') in wp-content/plugins/starter-sites/inc/class-wpss-main.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/starter-sites/inc/class-wpss-customizer-option.php:12
    • > PHP Warning
      Use of undefined constant WPSS_PATH - assumed 'WPSS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/starter-sites/inc/class-wpss-main.php on line 9
    • > PHP Warning
      require(WPSS_PATHinc/importer/class-wxr-importer.php): failed to open stream: No such file or directory in wp-content/plugins/starter-sites/inc/class-wpss-wxr-importer.php on line 11
    • > PHP Fatal error
      require(): Failed opening required 'WPSS_PATHinc/importer/class-logger.php' (include_path='.:/usr/share/php') in wp-content/plugins/starter-sites/inc/class-wpss-logger.php on line 9
    • > PHP Fatal error
      require(): Failed opening required 'WPSS_PATHinc/importer/class-wxr-importer.php' (include_path='.:/usr/share/php') in wp-content/plugins/starter-sites/inc/class-wpss-wxr-importer.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
7 plugin tags: starter sites, blocks, content, website, gutenberg...

starter-sites/starter-sites.php 92% from 13 tests

The main file in "Starter Sites" v. 1.5.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 166 characters long)

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
There were no executable files found in this plugin3,721 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP128691,2353,032
CSS1749324
JSON100295
JavaScript114770

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity46.18
▷ Minimum class complexity1.00
▷ Maximum class complexity262.00
Average method complexity5.23
▷ Minimum method complexity1.00
▷ Maximum method complexity72.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods118
▷ Static methods2319.49%
▷ Public methods6353.39%
▷ Protected methods3428.81%
▷ Private methods2117.80%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/placeholder.png9.31KB6.23KB▼ 33.06%