77% framed-slideshow-gallery

Code Review | Framed Slideshow Gallery

WordPress plugin Framed Slideshow Gallery scored77%from 54 tests.

About plugin

  • Plugin page: framed-slideshow-...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Dec 30, 2014
  • Latest release: Dec 30, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: Tauhidul Alam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,227 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.76ms] Passed 4 tests

Server-side resources used by Framed Slideshow Gallery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1035.98 ▼4.19
Dashboard /wp-admin3.40 ▲0.0946.06 ▼4.85
Posts /wp-admin/edit.php3.45 ▲0.0945.92 ▲3.04
Add New Post /wp-admin/post-new.php6.00 ▲0.1192.18 ▼13.05
Media Library /wp-admin/upload.php3.32 ▲0.0937.84 ▲3.51
Settings /wp-admin/edit.php?post_type=mlmalstic-slideshow&page=gallery-settings3.2930.23
Add New /wp-admin/post-new.php?post_type=mlmalstic-slideshow3.4750.70
All Slides /wp-admin/edit.php?post_type=mlmalstic-slideshow3.3637.36

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Framed Slideshow Gallery: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,987 ▲21613.95 ▼0.435.69 ▲3.7237.63 ▼5.79
Dashboard /wp-admin2,276 ▲915.19 ▼0.66113.56 ▲12.4943.15 ▲6.31
Posts /wp-admin/edit.php2,161 ▲722.35 ▲0.3142.64 ▲0.1034.82 ▼5.05
Add New Post /wp-admin/post-new.php1,574 ▲3218.41 ▲0.14600.70 ▼8.9933.04 ▼15.13
Media Library /wp-admin/upload.php1,458 ▲674.52 ▲0.2599.40 ▼0.4742.21 ▼0.01
Settings /wp-admin/edit.php?post_type=mlmalstic-slideshow&page=gallery-settings1,3212.8254.5523.90
Add New /wp-admin/post-new.php?post_type=mlmalstic-slideshow2,7058.04172.0267.76
All Slides /wp-admin/edit.php?post_type=mlmalstic-slideshow1,1732.3033.5827.79

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/framed-slideshow-gallery/slideshow-image-gallery.php:29

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=mlmalstic-slideshow
    • > Network (severe)
    wp-content/plugins/mlmalstic-slideshow-gallery/bootstrap/css/bootstrap.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=mlmalstic-slideshow
    • > Network (severe)
    wp-content/plugins/mlmalstic-slideshow-gallery/bootstrap/js/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=mlmalstic-slideshow
    • > Network (severe)
    wp-content/plugins/framed-slideshow-gallery/custom-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Gallery demo 1.), #2 (Gallery demo 2.), #3 (Gallery demo 3.), #4 (Gallery demo 4.), #5 (Gallery demo 5.), #6 (Gallery demo 6.), #7 (Gallery demo 7.), #8 (Settings page.)
  • Donate link: Invalid URI ("")
Please take inspiration from this readme.txt

framed-slideshow-gallery/slideshow-image-gallery.php 92% from 13 tests

"Framed Slideshow Gallery" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("framed-slideshow-gallery.php" instead of "slideshow-image-gallery.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected9,330 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS52326,994
JavaScript35781971,565
PHP15122542
SVG100229

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 2.04MB with 1.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/pause.png2.87KB0.20KB▼ 92.99%
screenshot-2.png280.92KB68.87KB▼ 75.48%
screenshot-4.png293.76KB64.55KB▼ 78.03%
icons/prev.png2.98KB0.26KB▼ 91.15%
screenshot-5.png297.14KB62.74KB▼ 78.89%