84% show-other-images

Code Review | Show Other Images

WordPress plugin Show Other Images scored84%from 54 tests.

About plugin

  • Plugin page: show-other-images
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.6.1
  • WordPress version: 6.3.1
  • First release: May 27, 2013
  • Latest release: Sep 22, 2013
  • Number of updates: 9
  • Update frequency: every 13.1 days
  • Top authors: Faldrian (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /748 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.64ms] Passed 4 tests

An overview of server-side resources used by Show Other Images
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.70 ▼7.18
Dashboard /wp-admin3.31 ▲0.0043.08 ▼3.77
Posts /wp-admin/edit.php3.36 ▲0.0047.43 ▲2.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0076.10 ▼17.93
Media Library /wp-admin/upload.php3.23 ▲0.0035.67 ▲2.31

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Show Other Images: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲5613.25 ▼1.121.92 ▼0.1437.74 ▼7.82
Dashboard /wp-admin2,203 ▲154.88 ▼0.04109.66 ▲1.4340.73 ▼2.93
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0538.67 ▲1.5733.54 ▼3.70
Add New Post /wp-admin/post-new.php1,542 ▲1418.16 ▼0.17654.13 ▲32.8974.51 ▲23.62
Media Library /wp-admin/upload.php1,391 ▼04.25 ▲0.0396.95 ▼3.1144.35 ▲0.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/show-other-images/show-other-images.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: teaser, pictures, images, thumbnails

show-other-images/show-other-images.php Passed 13 tests

This is the main PHP file of "Show Other Images" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
90 characters long description:
Shows other images below the "Read more"-Link, that are contained in the rest of the Post.

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
No dangerous file extensions were detected90 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1312957
PO File12120
CSS12013

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin