84% hot-sheet

Code Review | Hot Sheet

WordPress plugin Hot Sheet scored84%from 54 tests.

About plugin

  • Plugin page: hot-sheet
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.5
  • WordPress version: 6.3.1
  • First release: Jun 25, 2011
  • Latest release: Jul 26, 2019
  • Number of updates: 15
  • Update frequency: every 214.5 days
  • Top authors: designgeneers (80%)allendav (26.67%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,696 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.68MB] [CPU: ▼19.99ms] Passed 4 tests

Analyzing server-side resources used by Hot Sheet
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.82 ▲2.53
Dashboard /wp-admin3.34 ▼0.0144.57 ▼17.54
Posts /wp-admin/edit.php3.39 ▲0.0345.37 ▼2.93
Add New Post /wp-admin/post-new.php3.12 ▼2.7634.58 ▼61.27
Media Library /wp-admin/upload.php3.26 ▲0.0334.73 ▲1.79

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_hot_sheet_widget

Browser metrics Passed 4 tests

Hot Sheet: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.27 ▼0.351.56 ▼0.1939.23 ▼7.57
Dashboard /wp-admin2,192 ▲125.52 ▼0.1286.36 ▼3.2637.62 ▼1.14
Posts /wp-admin/edit.php2,097 ▼62.01 ▼0.0136.97 ▼5.5634.85 ▼4.93
Add New Post /wp-admin/post-new.php6,235 ▲4,70921.12 ▼1.72874.44 ▲266.8775.99 ▲25.64
Media Library /wp-admin/upload.php1,403 ▲64.16 ▼0.03106.10 ▲1.8846.12 ▲1.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_hot_sheet_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hot-sheet/hot-sheet.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: featured, event, events, calendar, hot sheet...

hot-sheet/hot-sheet.php 92% from 13 tests

The main PHP file in "Hot Sheet" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 294 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected133 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14232133

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin