84% very-simple-wp-slideshow

Code Review | Very Simple WP SlideShow

WordPress plugin Very Simple WP SlideShow scored84%from 54 tests.

About plugin

  • Plugin page: very-simple-wp-sl...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.6
  • WordPress version: 6.3.1
  • First release: Sep 4, 2019
  • Latest release: Jan 2, 2021
  • Number of updates: 19
  • Update frequency: every 25.5 days
  • Top authors: jschaves (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /541 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼9.82ms] Passed 4 tests

Analyzing server-side resources used by Very Simple WP SlideShow
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.94 ▼4.35
Dashboard /wp-admin3.37 ▲0.0248.48 ▼18.47
Posts /wp-admin/edit.php3.48 ▲0.1251.66 ▲6.45
Add New Post /wp-admin/post-new.php5.97 ▲0.0882.70 ▼18.32
Media Library /wp-admin/upload.php3.29 ▲0.0637.29 ▲1.87
VSWP SlideShow /wp-admin/options-general.php?page=very-simple-wp-slideshow-settings3.2831.80

Server storage [IO: ▲0.06MB] [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: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Very Simple WP SlideShow
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲12013.69 ▼1.066.01 ▲3.9441.97 ▼2.55
Dashboard /wp-admin2,214 ▲264.90 ▼0.9997.87 ▼23.4037.81 ▼7.74
Posts /wp-admin/edit.php2,097 ▲82.08 ▲0.0240.10 ▲3.8535.09 ▲2.80
Add New Post /wp-admin/post-new.php1,547 ▲1923.12 ▲4.72679.43 ▲39.4761.66 ▲7.21
Media Library /wp-admin/upload.php1,396 ▲114.28 ▲0.0897.11 ▼2.0541.50 ▼0.41
VSWP SlideShow /wp-admin/options-general.php?page=very-simple-wp-slideshow-settings9882.2626.9826.39

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=very-simple-wp-slideshow-settings
    • > Notice in wp-content/plugins/very-simple-wp-slideshow/shared/vswpss-class-deserializer.php+36
    Undefined variable: ouput

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: slideshow

very-simple-wp-slideshow/very-simple-wp-slideshow.php Passed 13 tests

The main PHP script in "Very Simple WP SlideShow" version 1.3 is automatically included on every request by WordPress
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected888 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP924253341
JavaScript2728287
CSS22920224
PO File1101036

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin