84% stencil

Code Review | Stencil

WordPress plugin Stencil scored84%from 54 tests.

About plugin

  • Plugin page: stencil
  • Plugin version: 1.14.9
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.0
  • WordPress version: 6.3.1
  • First release: Feb 6, 2019
  • Latest release: Feb 1, 2022
  • Number of updates: 65
  • Update frequency: every 16.8 days
  • Top authors: getstencil (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active /45,139 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼8.75ms] Passed 4 tests

A check of server-side resources used by Stencil
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.16 ▼2.24
Dashboard /wp-admin3.37 ▲0.0243.28 ▼18.24
Posts /wp-admin/edit.php3.48 ▲0.1244.51 ▼0.09
Add New Post /wp-admin/post-new.php5.97 ▲0.0879.89 ▼12.93
Media Library /wp-admin/upload.php3.29 ▲0.0635.63 ▼1.59

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Stencil
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲11713.87 ▼0.668.22 ▲6.5344.56 ▲1.00
Dashboard /wp-admin2,198 ▲215.64 ▲0.0496.31 ▼8.9440.51 ▼2.50
Posts /wp-admin/edit.php2,106 ▲32.05 ▲0.0647.34 ▲10.9335.91 ▲1.24
Add New Post /wp-admin/post-new.php1,532 ▲423.40 ▲0.25688.69 ▲41.9760.54 ▲7.45
Media Library /wp-admin/upload.php1,443 ▲434.28 ▲0.10110.35 ▲3.5241.20 ▼5.18

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/stencil/public/partials/stencil-public-display.php
    • > /wp-content/plugins/stencil/admin/partials/stencil-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
5 plugin tags: graphic design, design, photos, graphics, media library

stencil/stencil.php 92% from 13 tests

This is the main PHP file of "Stencil" version 1.14.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,205 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3136972978
PHP12126592198
CSS20829

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.57
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.16
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin