84% woo-elastic-slideshow

Code Review | Woo Elastic Slideshow

WordPress plugin Woo Elastic Slideshow scored84%from 54 tests.

About plugin

  • Plugin page: woo-elastic-slide...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Apr 16, 2016
  • Latest release: Apr 17, 2016
  • Number of updates: 4
  • Update frequency: every 113.5 days
  • Top authors: Omikant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,316 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: ▲0.02MB] [CPU: ▲2.08ms] Passed 4 tests

This is a short check of server-side resources used by Woo Elastic Slideshow
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0246.10 ▲5.23
Dashboard /wp-admin3.32 ▲0.0251.21 ▼1.22
Posts /wp-admin/edit.php3.37 ▲0.0252.82 ▲1.02
Add New Post /wp-admin/post-new.php5.90 ▲0.0294.91 ▲3.29
Media Library /wp-admin/upload.php3.24 ▲0.0239.11 ▲6.50

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Woo Elastic Slideshow
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲20313.54 ▼0.7712.42 ▲10.5245.92 ▲3.42
Dashboard /wp-admin2,206 ▲184.94 ▲0.05123.44 ▲12.2456.57 ▲15.04
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0342.82 ▲6.2337.51 ▲1.06
Add New Post /wp-admin/post-new.php1,542 ▲2818.11 ▲0.49617.80 ▼89.0556.15 ▲3.87
Media Library /wp-admin/upload.php1,388 ▼34.24 ▼0.07100.81 ▼2.7745.68 ▲1.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/woo-elastic-slideshow/woo-elastic-slideshow.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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:
  • Donate link: Please fix this invalid url: "#"
The official readme.txt might help

woo-elastic-slideshow/woo-elastic-slideshow.php Passed 13 tests

Analyzing the main PHP file in "Woo Elastic Slideshow" version 1.0.0
57 characters long description:
Woo Elastic Slideshow Plugin is for woocommerce Products.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin3,289 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS459102,196
SVG100565
JavaScript37691432
PHP1141396

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
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