10% woo-slideshow-extension

Code Review | Woo Slideshow Extension

WordPress plugin Woo Slideshow Extension scored10%from 54 tests.

About plugin

  • Plugin page: woo-slideshow-ext...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9.7
  • WordPress version: 6.3.1
  • First release: Oct 9, 2018
  • Latest release: Oct 9, 2018
  • Number of updates: 2
  • Update frequency: every 10.0 days
  • Top authors: frametagmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /566 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Error in wp-content/plugins/woo-slideshow-extension/wooSlideshowExtention.php+52
    Uncaught Error: Class 'AdminSection' not found in wp-content/plugins/woo-slideshow-extension/wooSlideshowExtention.php:52
    Stack trace:
    #0 wp-admin/includes/plugin.php(2318): include_once()
    #1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.63ms] Passed 4 tests

An overview of server-side resources used by Woo Slideshow Extension
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.25 ▼3.51
Dashboard /wp-admin3.31 ▼0.0450.44 ▼12.66
Posts /wp-admin/edit.php3.36 ▲0.0051.04 ▲1.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.22 ▼19.01
Media Library /wp-admin/upload.php3.23 ▲0.0036.94 ▼3.35

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Woo Slideshow Extension
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.31 ▼0.041.75 ▲0.1039.90 ▼4.35
Dashboard /wp-admin2,198 ▲185.63 ▼0.0284.13 ▼13.6540.39 ▼1.21
Posts /wp-admin/edit.php2,100 ▲31.97 ▲0.0039.18 ▲2.4837.07 ▲4.08
Add New Post /wp-admin/post-new.php1,526 ▼223.17 ▲0.11671.68 ▼14.0548.93 ▼16.14
Media Library /wp-admin/upload.php1,397 ▼34.27 ▼0.0699.64 ▼16.2246.28 ▼3.01

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

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
6 plugin tags: woocommerce pages, image display, slideshow, storefront, woocommerce slideshow...

woo-slideshow-extension/wooSlideshowExtention.php 85% from 13 tests

This is the main PHP file of "Woo Slideshow Extension" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-slideshow-extension.php" instead of "wooSlideshowExtention.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)

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 detected323 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP42720315
CSS1008

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity20.00
▷ Minimum class complexity12.00
▷ Maximum class complexity28.00
Average method complexity4.45
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants00.00%
▷ Class constants11100.00%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin