84% superslider-media-pop

Code Review | SuperSlider-Media-Pop

WordPress plugin SuperSlider-Media-Pop scored 84% from 54 tests.

About plugin

  • Plugin page: superslider-media...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-3.5
  • WordPress version: 5.9.2
  • First release: May 15, 2010
  • Latest release: Mar 5, 2013
  • Number of updates: 29
  • Update frequency: every 35.4 days
  • Top authors: Daiv (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 15,186 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼300.45ms] Passed 4 tests

An overview of server-side resources used by SuperSlider-Media-Pop
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.1755.59 ▲4.79
Dashboard /wp-admin3.53 ▲0.1333.93 ▲1.99
Posts /wp-admin/edit.php3.78 ▲0.1438.97 ▲1.41
Add New Post /wp-admin/post-new.php7.00 ▲0.0394.96 ▼1,207.06
Media Library /wp-admin/upload.php3.42 ▲0.1325.33 ▲1.86

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 5 new options
New WordPress options
ss_admin_thumb
ss_image_default_size
ss_image_default_link_type
jpeg_quality
ss_image_default_align

Browser metrics Passed 4 tests

SuperSlider-Media-Pop: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲2916.21 ▲0.516.25 ▼0.202.66 ▲0.00
Dashboard /wp-admin2,895 ▲406.15 ▲0.00116.08 ▼21.34154.22 ▼6.65
Posts /wp-admin/edit.php2,812 ▲1243.88 ▲0.64113.07 ▲48.88141.14 ▼6.95
Add New Post /wp-admin/post-new.php1,753 ▲9221.83 ▲6.00440.70 ▲31.53175.07 ▲19.35
Media Library /wp-admin/upload.php1,733 ▲355.57 ▲0.06136.63 ▼5.92189.08 ▲2.52

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
  • The uninstall procedure has failed, leaving 5 options in the database
    • ss_image_default_link_type
    • ss_image_default_align
    • ss_image_default_size
    • jpeg_quality
    • ss_admin_thumb

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 everything seems fine, this is not an exhaustive test

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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/superslider-media-pop/superslider-media-pop.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt might help

superslider-media-pop/superslider-media-pop.php 92% from 13 tests

The main PHP file in "SuperSlider-Media-Pop" ver. 2.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 189 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected463 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1110103445
JavaScript15018

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods37
▷ Static methods00.00%
▷ Public methods37100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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