84% fancy-image-show

Code Review | Fancy Image Show

WordPress plugin Fancy Image Show scored84%from 54 tests.

About plugin

  • Plugin page: fancy-image-show
  • Plugin version: 9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Nov 7, 2011
  • Latest release: Oct 29, 2023
  • Number of updates: 49
  • Update frequency: every 89.3 days
  • Top authors: gopi_plus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /29,553 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.73ms] Passed 4 tests

Server-side resources used by Fancy Image Show
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.61 ▼6.49
Dashboard /wp-admin3.36 ▲0.0644.14 ▼6.79
Posts /wp-admin/edit.php3.41 ▲0.0549.15 ▼0.11
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.76 ▲2.47
Media Library /wp-admin/upload.php3.28 ▲0.0535.18 ▲2.97
Fancy Image Show /wp-admin/options-general.php?page=fancy-image-show3.2932.05

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: 1 new table, 8 new options
New tables
wp_FancyImg_plugin
New WordPress options
db_upgraded
FancyImg_Title
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
FancyImg_Setting
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fancy Image Show
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲8813.47 ▼0.897.59 ▲5.4543.49 ▼0.42
Dashboard /wp-admin2,199 ▲255.64 ▲0.0790.12 ▼10.9438.92 ▼4.84
Posts /wp-admin/edit.php2,107 ▲71.99 ▲0.0238.97 ▼0.9938.26 ▲5.28
Add New Post /wp-admin/post-new.php1,536 ▲123.54 ▲5.49650.40 ▲40.5354.31 ▼15.25
Media Library /wp-admin/upload.php1,404 ▲74.18 ▼0.0895.82 ▼1.9741.21 ▲0.11
Fancy Image Show /wp-admin/options-general.php?page=fancy-image-show9491.9923.6026.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/fancy-image-show/pages/content-management-show.php
    • > /wp-content/plugins/fancy-image-show/pages/content-management-edit.php
    • > /wp-content/plugins/fancy-image-show/pages/content-management-add.php
    • > /wp-content/plugins/fancy-image-show/fancy-image-show.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: images, fancy, slideshow

fancy-image-show/fancy-image-show.php 92% from 13 tests

Analyzing the main PHP file in "Fancy Image Show" version 9.1
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 163 characters long)

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
Good job! No executable or dangerous file extensions detected1,476 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP59644786
PO File4203354471
JavaScript24927219

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.67
▷ Minimum method complexity2.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin