10% simple-zippyshare-embed

Code Review | Simple Zippyshare Embed

WordPress plugin Simple Zippyshare Embed scored 10% from 54 tests.

About plugin

  • Plugin page: simple-zippyshare...
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6
  • WordPress version: 5.8.1
  • First release: Jun 10, 2014
  • Latest release: Aug 18, 2016
  • Number of updates: 29
  • Update frequency: every 27.6 days
  • Top authors: Saibamen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,329 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/simple-zippyshare-embed/zippy-embed.php+239
    Methods with the same name as their class will not be constructors in a future version of PHP; zippy_widget has a deprecated constructor

Server metrics [RAM: ▼1.76MB] [CPU: ▼188.53ms] Passed 4 tests

Server-side resources used by Simple Zippyshare Embed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.87 ▼0.855.48 ▼16.75
Dashboard /wp-admin1.89 ▼1.166.63 ▼39.71
Posts /wp-admin/edit.php1.89 ▼1.217.29 ▼34.80
Add New Post /wp-admin/post-new.php1.89 ▼3.545.59 ▼649.78
Media Library /wp-admin/upload.php1.89 ▼1.115.70 ▼29.83
Simple Zippyshare Embed /wp-admin/options-general.php?page=simple-zippyshare-embed/zippy-embed.php1.895.58

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 10 new options
New WordPress options
zippydownbutt
zippyauto
zippywidth
zippyvol
zippytext
zippyborder
zippyplay
zippyback
zippywave
widget_zippy_widget

Browser metrics Passed 4 tests

Simple Zippyshare Embed: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.89 ▲0.1912.12 ▲0.4251.50 ▼0.61
Dashboard /wp-admin2,975 ▲446.08 ▲0.13130.51 ▼7.79112.17 ▼4.04
Posts /wp-admin/edit.php2,744 ▲52.71 ▼0.0070.39 ▲7.0289.05 ▲0.70
Add New Post /wp-admin/post-new.php1,597 ▲9718.56 ▼0.21417.27 ▲34.43132.04 ▲18.83
Media Library /wp-admin/upload.php1,812 ▼45.01 ▼0.04164.34 ▲6.61118.47 ▲7.68
Simple Zippyshare Embed /wp-admin/options-general.php?page=simple-zippyshare-embed/zippy-embed.php1,2582.0653.9278.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/simple-zippyshare-embed/zippy-embed.php+239
    Methods with the same name as their class will not be constructors in a future version of PHP; zippy_widget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_zippy_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=simple-zippyshare-embed/zippy-embed.php
    • > Deprecated in wp-content/plugins/simple-zippyshare-embed/zippy-embed.php+239
    Methods with the same name as their class will not be constructors in a future version of PHP; zippy_widget has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=simple-zippyshare-embed/zippy-embed.php
    • > Deprecated in wp-content/plugins/simple-zippyshare-embed/zippy-embed.php+327
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=simple-zippyshare-embed/zippy-embed.php
    • > User deprecated in wp-includes/functions.php+5304
    The called constructor method for WP_Widget in zippy_widget is deprecated since version 4.3.0! Use __construct() instead.

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-zippyshare-embed/zippy-embed.php:29

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Plugin settings page), #2 (You must only put some Zippyshare links to your Wordpress content), #3 (Working plugin)
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
Please take inspiration from this readme.txt

simple-zippyshare-embed/zippy-embed.php 92% from 13 tests

The entry point to "Simple Zippyshare Embed" version 1.7 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-zippyshare-embed.php" instead of "zippy-embed.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
Everything looks great! No dangerous files found in this plugin274 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15754216
PO File1212458

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.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%
Functions7
▷ Named functions7100.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
4 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png7.26KB5.15KB▼ 29.08%
images/download_button.png10.79KB4.58KB▼ 57.58%
screenshot-1.png19.52KB10.15KB▼ 47.99%
screenshot-3.png22.45KB12.21KB▼ 45.63%