84% simple-silverstream-tv-shortcodes

Code Review | Simple Silverstream TV Shortcodes

WordPress plugin Simple Silverstream TV Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: simple-silverstre...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 17, 2014
  • Latest release: Sep 16, 2016
  • Number of updates: 27
  • Update frequency: every 27.0 days
  • Top authors: mikemanger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,055 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼9.55MB] [CPU: ▼1,967,587.96ms] Passed 4 tests

An overview of server-side resources used by Simple Silverstream TV Shortcodes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▼38.2436.35 ▼7,870,340.97
Dashboard /wp-admin41.77 ▲38.387,878,850.11 ▲7,878,776.98
Posts /wp-admin/edit.php3.41 ▲0.0149.60 ▼4.10
Add New Post /wp-admin/post-new.php5.94 ▲0.0188.86 ▼8.35
Media Library /wp-admin/upload.php3.28 ▲0.0136.82 ▲1.57

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Simple Silverstream TV Shortcodes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.24 ▼0.041.60 ▼0.1340.58 ▼3.78
Dashboard /wp-admin2,195 ▲185.52 ▼0.0583.81 ▼8.4140.27 ▼3.76
Posts /wp-admin/edit.php2,097 ▼02.00 ▼0.0339.76 ▲4.2539.00 ▲0.35
Add New Post /wp-admin/post-new.php1,535 ▲718.30 ▼4.84629.63 ▼40.1176.55 ▲18.39
Media Library /wp-admin/upload.php1,403 ▲34.16 ▲0.0299.86 ▼2.4145.48 ▲1.67

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-silverstream-tv-shortcodes/simple-silverstream-tv-shortcodes.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
3 plugin tags: shortcode, silverstream tv, video

simple-silverstream-tv-shortcodes/simple-silverstream-tv-shortcodes.php Passed 13 tests

"Simple Silverstream TV Shortcodes" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
41 characters long description:
Adds shortcode for Silverstream TV videos

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 detected43 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP182738
Markdown1205

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected