10% schooltube-shortcode

Code Review | SchoolTube Shortcode

WordPress plugin SchoolTube Shortcode scored10%from 54 tests.

About plugin

  • Plugin page: schooltube-shortcode
  • Plugin version: 0.1 ALPHA...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 24, 2013
  • Latest release: Apr 24, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: foadah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /593 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure had errors
    • > Compile error in wp-content/plugins/schooltube-shortcode/schooltube-shortcode.php+36
    'break' not in the 'loop' or 'switch' context

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

Analyzing server-side resources used by SchoolTube Shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.80 ▼0.92
Dashboard /wp-admin3.31 ▲0.0052.47 ▼0.54
Posts /wp-admin/edit.php3.36 ▲0.0050.98 ▼1.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.68 ▼16.88
Media Library /wp-admin/upload.php3.23 ▲0.0038.00 ▲2.40

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

SchoolTube Shortcode: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼1.342.08 ▲0.3539.03 ▼9.72
Dashboard /wp-admin2,206 ▲155.77 ▼0.0997.55 ▼7.8342.03 ▲0.91
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0137.36 ▼6.4636.24 ▲1.15
Add New Post /wp-admin/post-new.php1,533 ▼023.24 ▼0.10642.31 ▼20.4151.04 ▼21.39
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0498.68 ▼10.4839.99 ▼5.11

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      'break' not in the 'loop' or 'switch' context in wp-content/plugins/schooltube-shortcode/schooltube-shortcode.php on line 36

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

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === schooltube-shortcode === )
You can look at the official readme.txt

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

Analyzing the main PHP file in "SchoolTube Shortcode" version 0.1 ALPHA...
Please take the time to fix the following:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "0.1 ALPHA...")
  • Description: The description should be shorter than 140 characters (currently 159 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP162520

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin