84% offsprout-template-sites

Code Review | Template Sites for Offsprout

WordPress plugin Template Sites for Offsprout scored 84% from 54 tests.

About plugin

  • Plugin page: offsprout-templat...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2.1
  • WordPress version: 6.3.1
  • First release: Mar 13, 2018
  • Latest release: Jun 17, 2019
  • Number of updates: 5
  • Update frequency: every 93.6 days
  • Top authors: offsprout (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,227 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.72ms] Passed 4 tests

A check of server-side resources used by Template Sites for Offsprout
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0138.45 ▼3.73
Dashboard /wp-admin3.31 ▲0.0046.12 ▼2.40
Posts /wp-admin/edit.php3.36 ▲0.0046.68 ▲0.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.61 ▼5.34
Media Library /wp-admin/upload.php3.23 ▲0.0032.39 ▼3.40

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Template Sites for Offsprout
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.121.92 ▲0.0849.84 ▼0.25
Dashboard /wp-admin2,209 ▲214.87 ▼1.0197.23 ▼17.3038.78 ▼9.68
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0239.92 ▼0.4035.26 ▼0.23
Add New Post /wp-admin/post-new.php1,534 ▲2023.19 ▲5.66635.15 ▼59.3057.05 ▲2.90
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0393.67 ▼16.2341.44 ▼8.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/offsprout-template-sites/class-offsprout-template-site-api.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/offsprout-template-sites/offsprout-template-site.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/offsprout-template-sites/class-offsprout-template-site-multisite-menu.php:5

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 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: front end builder, landing page, website builder, offsprout, page builder...

offsprout-template-sites/offsprout-template-site.php 85% from 13 tests

The main PHP script in "Template Sites for Offsprout" version 1.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 154 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("offsprout-template-sites.php" instead of "offsprout-template-site.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected471 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP411265275
XML600196

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity16.50
▷ Minimum class complexity5.00
▷ Maximum class complexity28.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin