84% starter-templates

Code Review | Starter Templates by FancyWP

WordPress plugin Starter Templates by FancyWP scored84%from 54 tests.

About plugin

  • Plugin page: starter-templates
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.1
  • WordPress version: 6.3.1
  • First release: May 23, 2020
  • Latest release: Sep 16, 2021
  • Number of updates: 9
  • Update frequency: every 53.9 days
  • Top authors: fancywp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /5,051 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.96MB] [CPU: ▼3.01ms] Passed 4 tests

Server-side resources used by Starter Templates by FancyWP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.43 ▲0.9744.30 ▲3.33
Dashboard /wp-admin4.27 ▲0.9352.79 ▼9.98
Posts /wp-admin/edit.php4.39 ▲1.0351.93 ▲4.69
Add New Post /wp-admin/post-new.php6.85 ▲0.9795.70 ▼10.09
Media Library /wp-admin/upload.php4.20 ▲0.9740.73 ▲7.24
Starter Templates /wp-admin/themes.php?page=starter-templates4.2138.16

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Starter Templates by FancyWP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.20 ▼1.151.58 ▼0.4439.18 ▼5.22
Dashboard /wp-admin2,213 ▲254.86 ▼0.02110.19 ▲6.9236.79 ▼7.87
Posts /wp-admin/edit.php2,096 ▲72.01 ▲0.0138.39 ▼0.0135.14 ▼0.24
Add New Post /wp-admin/post-new.php1,536 ▼823.32 ▲5.23639.28 ▲13.8852.92 ▼5.42
Media Library /wp-admin/upload.php1,392 ▲14.21 ▼0.0093.82 ▼4.9843.34 ▼1.57
Starter Templates /wp-admin/themes.php?page=starter-templates2,9052.7560.3548.04

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
Please fix the following items
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/starter-templates/importer/class-wxr-importer.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/starter-templates/classess/class-export.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Starter_Templates_Importer_Logger' not found in wp-content/plugins/starter-templates/importer/class-logger-serversentevents.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/starter-templates/classess/class-tgm.php:2100
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/starter-templates/templates/modal.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'TGM_Plugin_Activation' not found in wp-content/plugins/starter-templates/classess/class-plugin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/starter-templates/templates/preview.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/starter-templates/templates/dashboard.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/starter-templates/starter-templates.php:19

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 93% 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
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (How to Install and Activate Starter Templates), #2 (How to import Starter Templates)
  • Requires php: The plugin version is formatted incorrectly
The official readme.txt is a good inspiration

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

The main file in "Starter Templates by FancyWP" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
48 characters long description:
Import free sites build with Starter Blog theme.

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
Success! There were no dangerous files found in this plugin10,190 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP151,3042,6875,097
JavaScript36079982,651
CSS754541,105
Sass2614822
SVG6123515

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity54.41
▷ Minimum class complexity1.00
▷ Maximum class complexity263.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods249
▷ Static methods124.82%
▷ Public methods18373.49%
▷ Protected methods6224.90%
▷ Private methods41.61%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin