89% shordio

Code Review | Shordio

WordPress plugin Shordio scored89%from 54 tests.

About plugin

  • Plugin page: shordio
  • Plugin version: 1.2.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Feb 5, 2021
  • Latest release: May 30, 2023
  • Number of updates: 49
  • Update frequency: every 17.2 days
  • Top authors: shordio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /931 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.55ms] Passed 4 tests

This is a short check of server-side resources used by Shordio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.65 ▼2.84
Dashboard /wp-admin3.34 ▲0.0449.99 ▼2.58
Posts /wp-admin/edit.php3.40 ▲0.0451.86 ▲3.08
Add New Post /wp-admin/post-new.php5.92 ▲0.0493.99 ▼3.70
Media Library /wp-admin/upload.php3.27 ▲0.0443.40 ▲2.92

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Shordio
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,015 ▲24419.57 ▲5.1823.62 ▲21.7343.12 ▼4.79
Dashboard /wp-admin2,229 ▲417.38 ▲2.33139.93 ▲32.3756.46 ▲15.53
Posts /wp-admin/edit.php2,117 ▲284.61 ▲2.6369.03 ▲31.5765.69 ▲29.42
Add New Post /wp-admin/post-new.php1,691 ▲16326.62 ▲3.55634.31 ▼9.9647.54 ▼11.84
Media Library /wp-admin/upload.php1,411 ▲266.28 ▲2.08123.65 ▲21.4954.23 ▲7.90

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% 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:
  • Screenshots: A description for screenshot #2 is missing in shordio/assets to your readme.txt
You can look at the official readme.txt

shordio/shordio.php 92% from 13 tests

Analyzing the main PHP file in "Shordio" version 1.2.5
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,529 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript71141001,389
CSS4157133890
PHP13117187
SVG110063

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.22
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.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

PNG files should be compressed to save space and minimize bandwidth usage
19 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
supportingfiles/assets/shordio_embed/images/popup-close.png0.30KB0.29KB▼ 1.95%
supportingfiles/assets/shordio_embed/images/play.png1.06KB0.27KB▼ 74.17%
supportingfiles/assets/shordio_embed/images/backward-2x.png2.31KB1.61KB▼ 30.29%
supportingfiles/assets/shordio_embed/images/pause.png14.24KB0.12KB▼ 99.14%
supportingfiles/assets/shordio_embed/images/pause_black.png1.03KB0.12KB▼ 88.10%