90% slideshare-oembed-for-wordpress

Code Review | SlideShare Embeds for WordPress

WordPress plugin SlideShare Embeds for WordPress scored90%from 54 tests.

About plugin

  • Plugin page: slideshare-oembed...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Dec 6, 2010
  • Latest release: Jun 19, 2014
  • Number of updates: 6
  • Update frequency: every 215.7 days
  • Top authors: jaiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /14,382 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
Installer ran successfully

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

Analyzing server-side resources used by SlideShare Embeds for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.99 ▼4.89
Dashboard /wp-admin3.31 ▲0.0148.55 ▼3.35
Posts /wp-admin/edit.php3.37 ▲0.0147.61 ▲0.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.57 ▼7.36
Media Library /wp-admin/upload.php3.24 ▲0.0136.23 ▼0.63

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for SlideShare Embeds for WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.20 ▼0.381.57 ▼0.0839.43 ▼3.66
Dashboard /wp-admin2,198 ▲185.56 ▼0.1087.64 ▼4.9938.97 ▼1.86
Posts /wp-admin/edit.php2,097 ▼61.95 ▼0.0533.78 ▼7.0933.57 ▼2.53
Add New Post /wp-admin/post-new.php1,538 ▲323.28 ▲5.11669.49 ▲61.7360.67 ▼5.38
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.0495.08 ▼1.1440.47 ▼1.73

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
10 plugin tags: embed, ppt, viewer, slideshare, slideshow...

slideshare-oembed-for-wordpress/oembed-slideshare.php 92% from 13 tests

The entry point to "SlideShare Embeds for WordPress" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("slideshare-oembed-for-wordpress.php" instead of "oembed-slideshare.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1468

PHP code Passed 2 tests

A short review 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.50
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%
Functions1
▷ Named functions1100.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