83% shortcode-shhh

Code Review | Shortcode Shhh

WordPress plugin Shortcode Shhh scored83%from 54 tests.

About plugin

  • Plugin page: shortcode-shhh
  • Plugin version: .1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Oct 22, 2014
  • Latest release: Oct 23, 2014
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: sprise (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /586 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.00MB] [CPU: ▼6.84ms] Passed 4 tests

Server-side resources used by Shortcode Shhh
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.22 ▼2.96
Dashboard /wp-admin3.31 ▼0.0349.30 ▼18.66
Posts /wp-admin/edit.php3.37 ▲0.0149.12 ▼2.98
Add New Post /wp-admin/post-new.php5.90 ▲0.01101.95 ▲7.24
Media Library /wp-admin/upload.php3.24 ▲0.0138.83 ▼2.75

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shortcode Shhh
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.34 ▼0.172.17 ▲0.1943.29 ▼0.75
Dashboard /wp-admin2,199 ▲225.59 ▲0.0390.48 ▼11.3844.68 ▲1.15
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0039.38 ▲2.7235.48 ▼0.17
Add New Post /wp-admin/post-new.php1,529 ▲323.49 ▼0.05660.78 ▼6.9060.99 ▲6.01
Media Library /wp-admin/upload.php1,407 ▲44.14 ▼0.07103.70 ▼6.5447.99 ▼1.71
Shortcode Shhh /wp-admin/shortcode-shhh.php260.420.0817.03

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 detected upon uninstall: 8 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • shortcode_shhh_closes
    • shortcode_shhh_version
    • can_compress_scripts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/shortcode-shhh.php
    • > Network (severe)
    wp-admin/shortcode-shhh.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (http://www.sprisemedia.com/contrib/shhh.png)
Please take inspiration from this readme.txt

shortcode-shhh/shortcode-shhh.php 85% from 13 tests

This is the main PHP file of "Shortcode Shhh" version .1..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 162 characters long)
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of ".1...")

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 detected105 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14734105

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods675.00%
▷ Protected methods00.00%
▷ Private methods225.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
shhh.png64.41KB20.78KB▼ 67.74%