68% slideshowfx

Code Review | SlideshowFx

WordPress plugin SlideshowFx scored 68% from 54 tests.

About plugin

  • Plugin page: slideshowfx
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Jan 5, 2013
  • Latest release: Mar 24, 2013
  • Number of updates: 11
  • Update frequency: every 7.6 days
  • Top authors: OopsTouch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,539 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼1.14MB] [CPU: ▼41.95ms] Passed 4 tests

An overview of server-side resources used by SlideshowFx
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▼0.6317.02 ▼27.32
Dashboard /wp-admin2.87 ▼0.4316.78 ▼32.55
Posts /wp-admin/edit.php2.87 ▼0.4817.13 ▼28.89
Add New Post /wp-admin/post-new.php2.87 ▼3.0117.03 ▼79.04
Media Library /wp-admin/upload.php2.87 ▼0.3616.71 ▼19.02
SlideshowFx /wp-admin/options-general.php?page=sfx2.8717.16

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for SlideshowFx
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲15713.66 ▼0.925.71 ▲3.6944.06 ▼7.25
Dashboard /wp-admin2,213 ▲224.86 ▼0.0596.32 ▼20.1538.33 ▼8.48
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0539.05 ▲3.7834.28 ▼0.15
Add New Post /wp-admin/post-new.php1,540 ▲1223.16 ▲0.01619.35 ▼36.6550.44 ▼2.72
Media Library /wp-admin/upload.php1,386 ▼54.18 ▼0.0595.10 ▼7.8841.41 ▼5.06
SlideshowFx /wp-admin/options-general.php?page=sfx8532.0523.6128.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method SlideshowFx::add_init() should not be called statically
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=sfx
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method SlideshowFx::add_init() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=sfx
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method SlideshowFx::add_admin_init() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=sfx
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=sfx
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/slideshowfx/slideshowfx.php:42

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: flickr, picasa, google, albums, photo albums...

slideshowfx/slideshowfx.php Passed 13 tests

The main file in "SlideshowFx" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
86 characters long description:
Insert Google+, Picasa or Flickr albums and photo thumbnail inside WordPress articles.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,189 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP4130245644
CSS11149396
PO File2202078
JavaScript193470
HTML1001

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.33
Average class complexity28.25
▷ Minimum class complexity3.00
▷ Maximum class complexity49.00
Average method complexity4.76
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods29
▷ Static methods2793.10%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected