84% slideshare-widget-multislides

Code Review | SlideShare Presentations in Widget

WordPress plugin SlideShare Presentations in Widget scored84%from 54 tests.

About plugin

  • Plugin page: slideshare-widget...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2
  • WordPress version: 6.3.1
  • First release: Feb 12, 2015
  • Latest release: Apr 21, 2015
  • Number of updates: 7
  • Update frequency: every 9.9 days
  • Top authors: magiclogix (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /2,542 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by SlideShare Presentations in Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0442.78 ▼3.60
Dashboard /wp-admin3.35 ▲0.0550.01 ▼4.73
Posts /wp-admin/edit.php3.40 ▲0.0448.23 ▼2.84
Add New Post /wp-admin/post-new.php5.93 ▲0.0495.79 ▼36.61
Media Library /wp-admin/upload.php3.27 ▲0.0443.52 ▲4.43

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_sshw_widget
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for SlideShare Presentations in Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.25 ▼0.111.84 ▼0.1443.28 ▼1.74
Dashboard /wp-admin2,211 ▲345.56 ▼0.0989.85 ▲0.4342.10 ▲0.82
Posts /wp-admin/edit.php2,116 ▲162.04 ▲0.0139.97 ▲2.0537.91 ▲0.39
Add New Post /wp-admin/post-new.php1,539 ▲1323.46 ▲0.42669.46 ▼23.2255.95 ▼10.30
Media Library /wp-admin/upload.php1,416 ▲164.12 ▲0.00107.96 ▼5.2446.24 ▼1.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_sshw_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 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 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/slideshare-widget-multislides/slideshare-widget.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
7 plugin tags: api, multislides, presentation widget, widget, slideshare...

slideshare-widget-multislides/slideshare-widget.php 92% from 13 tests

The main PHP script in "SlideShare Presentations in Widget" version 1.1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("slideshare-widget-multislides.php" instead of "slideshare-widget.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 plugin203 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12915179
CSS13024

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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 were not PNG files found in your plugin