10% superslider-excerpt

Code Review | SuperSlider-Excerpt

WordPress plugin SuperSlider-Excerpt scored 10% from 54 tests.

About plugin

  • Plugin page: superslider-excerpt
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-3.5
  • WordPress version: 5.9.2
  • First release: Dec 2, 2009
  • Latest release: Dec 24, 2012
  • Number of updates: 19
  • Update frequency: every 58.8 days
  • Top authors: Daiv (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active / 9,725 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/superslider-excerpt/superslider-excerpt.php+310
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼0.22MB] [CPU: ▼309.42ms] Passed 4 tests

A check of server-side resources used by SuperSlider-Excerpt
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.1754.45 ▲3.46
Dashboard /wp-admin3.54 ▲0.1335.08 ▲1.79
Posts /wp-admin/edit.php3.76 ▲0.1238.78 ▲3.26
Add New Post /wp-admin/post-new.php5.75 ▼1.2253.50 ▼1,245.02
Media Library /wp-admin/upload.php3.41 ▲0.1126.32 ▲2.29
SuperSlider-Excerpt /wp-admin/options-general.php?page=superslider-excerpt3.6723.29

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 4 new options
New WordPress options
excerpt_size_h
excerpt_size_w
ssExcerpt_options
excerpt_crop

Browser metrics Passed 4 tests

SuperSlider-Excerpt: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,931 ▲17618.23 ▲2.6125.87 ▲19.692.93 ▲0.04
Dashboard /wp-admin2,897 ▲436.13 ▼0.06118.68 ▼16.89160.56 ▼0.77
Posts /wp-admin/edit.php2,696 ▲23.23 ▼0.0064.59 ▲4.26140.71 ▼1.30
Add New Post /wp-admin/post-new.php1,619 ▼4218.98 ▲1.50332.19 ▼83.70195.91 ▲46.43
Media Library /wp-admin/upload.php1,703 ▲25.52 ▲0.07138.01 ▼11.05183.63 ▲5.10
SuperSlider-Excerpt /wp-admin/options-general.php?page=superslider-excerpt2,4433.1469.59136.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 4 options in the database
    • excerpt_crop
    • excerpt_size_w
    • ssExcerpt_options
    • excerpt_size_h

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=superslider-excerpt
    • > Notice in wp-content/plugins/superslider-excerpt/admin/superslider-excerpt-ui.php+633
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/superslider-excerpt/admin/superslider-excerpt-ui.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/superslider-excerpt/superslider-excerpt.php:303

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (![SuperSlider-Excerpt options screen](screenshot-1.png "SuperSlider-Excerpt options screen")), #2 (![SuperSlider-Excerpt ](screenshot-2.png "SuperSlider-Excerpt ")), #3 (![SuperSlider-Excerpt ](screenshot-3.png "SuperSlider-Excerpt Morphed on mouseover "))
Please take inspiration from this readme.txt

superslider-excerpt/superslider-excerpt.php 92% from 13 tests

"SuperSlider-Excerpt" version 2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 294 characters long)

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
Everything looks great! No dangerous files found in this plugin2,611 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript634811,102
PHP2243109932
PO File2159184348
CSS62327229

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity67.00
▷ Minimum class complexity67.00
▷ Maximum class complexity67.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
9 PNG files occupy 0.26MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/blue.png1.19KB0.62KB▼ 48.15%
plugin-data/superslider/ssExcerpt/black/excerpt_image_bg.png26.49KB0.20KB▼ 99.23%
admin/img/black.png1.29KB0.67KB▼ 47.64%
admin/img/logo_superslider.png4.67KB2.61KB▼ 44.16%
admin/img/default.png1.45KB0.92KB▼ 36.82%