84% spice-starter-sites

Code Review | Spice Starter Sites

WordPress plugin Spice Starter Sites scored 84% from 54 tests.

About plugin

  • Plugin page: spice-starter-sites
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 10, 2022
  • Latest release: Oct 3, 2023
  • Number of updates: 13
  • Update frequency: every 47.4 days
  • Top authors: spicethemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 8,656 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.33ms] Passed 4 tests

A check of server-side resources used by Spice Starter Sites
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.21 ▼2.08
Dashboard /wp-admin3.33 ▲0.0244.10 ▼1.37
Posts /wp-admin/edit.php3.38 ▲0.0251.29 ▲3.35
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.20 ▼3.64
Media Library /wp-admin/upload.php3.25 ▲0.0237.21 ▲1.77

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Spice Starter Sites
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲10414.74 ▲0.531.98 ▼0.2841.47 ▼6.50
Dashboard /wp-admin2,223 ▲355.87 ▲0.95113.69 ▼1.1643.43 ▲0.28
Posts /wp-admin/edit.php2,102 ▲132.02 ▲0.0141.35 ▲1.4635.60 ▼0.80
Add New Post /wp-admin/post-new.php1,523 ▲623.51 ▲5.81665.43 ▲51.2865.13 ▲9.81
Media Library /wp-admin/upload.php1,402 ▲114.19 ▼0.01101.86 ▲0.0043.19 ▲1.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please take a closer look at the following
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/spice-starter-sites/demo-content/setup.php:203
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/spice-starter-sites/inc/importer/autoimporter.php on line 6
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/import.php' (include_path='.:/usr/share/php') in wp-content/plugins/spice-starter-sites/inc/importer/autoimporter.php on line 6
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/import.php): failed to open stream: No such file or directory in wp-content/plugins/spice-starter-sites/inc/importer/autoimporter.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/spice-starter-sites/admin/view.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
No plugin tags provided

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

"Spice Starter Sites" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected36,562 lines of code in 141 files:
LanguageFilesBlank linesComment linesLines of code
PHP1228,34917,56535,328
CSS147916802
JavaScript44260218
Markdown1680214

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity87.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.69
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes55
▷ Abstract classes23.64%
▷ Concrete classes5396.36%
▷ Final classes00.00%
Methods1,312
▷ Static methods19915.17%
▷ Public methods92370.35%
▷ Protected methods171.30%
▷ Private methods37228.35%
Functions116
▷ Named functions11397.41%
▷ Anonymous functions32.59%
Constants150
▷ Global constants10368.67%
▷ Class constants4731.33%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/completed.png2.59KB1.22KB▼ 52.91%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/newscrunch.png3.25KB2.93KB▼ 9.85%