99% slidely-slideshows-embed

Code Review | Slidely Slideshows Embed

WordPress plugin Slidely Slideshows Embed scored 99% from 54 tests.

About plugin

  • Plugin page: slidely-slideshow...
  • Plugin version: 3.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 5.8.1
  • First release: Jul 10, 2013
  • Latest release: Feb 3, 2018
  • Number of updates: 23
  • Update frequency: every 72.7 days
  • Top authors: ramiy (69.57%)iMoses (34.78%)

Code review

54 tests

User reviews

11 reviews

Install metrics

600+ active / 35,503 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼173.28ms] Passed 4 tests

A check of server-side resources used by Slidely Slideshows Embed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1436.68 ▲9.79
Dashboard /wp-admin3.08 ▲0.0241.93 ▼7.19
Posts /wp-admin/edit.php3.13 ▲0.0245.16 ▲2.43
Add New Post /wp-admin/post-new.php5.44 ▲0.0087.22 ▼688.25
Media Library /wp-admin/upload.php3.02 ▲0.0233.21 ▼0.09

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Slidely Slideshows Embed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.79 ▼0.239.53 ▼3.9446.50 ▲0.11
Dashboard /wp-admin2,973 ▲395.95 ▼0.02151.31 ▼4.30114.62 ▲2.82
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0272.10 ▲0.6385.53 ▼0.75
Add New Post /wp-admin/post-new.php1,500 ▼018.58 ▼0.17392.61 ▼26.67107.00 ▼1.88
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.03189.77 ▲30.66119.03 ▲5.80

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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
Please fix the following attributes:
  • Tags: There are too many tags (20 tag instead of maximum 10)
The official readme.txt is a good inspiration

slidely-slideshows-embed/slidely-embed.php 92% from 13 tests

The principal PHP file in "Slidely Slideshows Embed" v. 3.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("slidely-slideshows-embed.php" instead of "slidely-embed.php")

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
Success! There were no dangerous files found in this plugin83 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5356883

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.82MB with 0.53MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png380.62KB124.78KB▼ 67.22%
screenshot-4.png35.20KB13.36KB▼ 62.05%
screenshot-2.png389.98KB127.82KB▼ 67.22%
screenshot-1.png32.63KB12.29KB▼ 62.33%