10% storify-stories-slider

Code Review | Storify Stories Slider

WordPress plugin Storify Stories Slider scored10%from 54 tests.

About plugin

  • Plugin page: storify-stories-s...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 2, 2012
  • Latest release: Oct 29, 2012
  • Number of updates: 8
  • Update frequency: every 3.5 days
  • Top authors: tesial (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /6,274 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/storify-stories-slider/wp-storify-stories-slider.php+28
    Methods with the same name as their class will not be constructors in a future version of PHP; StorifyStoriesSliderShortCode has a deprecated constructor

Server metrics [RAM: ▼14.97MB] [CPU: ▼2,700,897.16ms] Passed 4 tests

An overview of server-side resources used by Storify Stories Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼53.495.47 ▼10,803,380.88
Dashboard /wp-admin2.10 ▼1.246.19 ▼51.32
Posts /wp-admin/edit.php2.11 ▼1.305.39 ▼47.06
Add New Post /wp-admin/post-new.php2.10 ▼3.836.16 ▼109.37
Media Library /wp-admin/upload.php2.11 ▼1.175.84 ▼44.61

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Storify Stories Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14513.64 ▼0.739.44 ▲7.5842.46 ▼2.04
Dashboard /wp-admin2,203 ▲265.65 ▲0.0596.85 ▲9.4243.87 ▲5.06
Posts /wp-admin/edit.php2,111 ▲112.19 ▲0.2035.41 ▼5.0632.53 ▼7.10
Add New Post /wp-admin/post-new.php1,530 ▲221.11 ▼2.03665.64 ▼35.7457.62 ▼1.61
Media Library /wp-admin/upload.php1,411 ▲114.25 ▲0.04101.54 ▼11.9446.46 ▼0.41

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/storify-stories-slider/wp-storify-stories-slider.php+28
    Methods with the same name as their class will not be constructors in a future version of PHP; StorifyStoriesSliderShortCode has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/storify-stories-slider/wp-storify-stories-slider.php:114

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

storify-stories-slider/wp-storify-stories-slider.php 92% from 13 tests

"Storify Stories Slider" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("storify-stories-slider.php" instead of "wp-storify-stories-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected927 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS21027471
JavaScript453109378
PHP2203978

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods4100.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
18 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/ui-colorbox/images/controls.png2.83KB1.28KB▼ 54.82%
css/ui-colorbox/images/loading_background.png0.15KB0.15KB▼ 0.64%
css/ui-storify-stories-slider/images/prev-vertical.png0.47KB0.28KB▼ 40.08%
css/ui-colorbox/images/ie6/borderBottomCenter.png0.11KB0.10KB▼ 8.11%
css/ui-colorbox/images/ie6/borderBottomRight.png0.21KB0.20KB▼ 5.53%