84% image-wall

Code Review | Image Wall

WordPress plugin Image Wall scored84%from 54 tests.

About plugin

  • Plugin page: image-wall
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.9
  • WordPress version: 6.3.1
  • First release: Jan 11, 2013
  • Latest release: Jan 28, 2022
  • Number of updates: 53
  • Update frequency: every 62.4 days
  • Top authors: Parakoos (100%)

Code review

54 tests

User reviews

54 reviews

Install metrics

300+ active /31,224 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.48ms] Passed 4 tests

A check of server-side resources used by Image Wall
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.90 ▲1.58
Dashboard /wp-admin3.32 ▲0.0149.97 ▼5.16
Posts /wp-admin/edit.php3.37 ▲0.0147.35 ▼3.30
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.03 ▼21.68
Media Library /wp-admin/upload.php3.24 ▲0.0134.86 ▼3.79
Image Wall /wp-admin/options-general.php?page=image-wall-settings3.2130.59

Server storage [IO: ▲0.59MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
image_wall_regen_salt
db_upgraded
widget_recent-comments
widget_theysaidso_widget
image_wall_regen_method
can_compress_scripts
image_wall_regen

Browser metrics Passed 4 tests

Image Wall: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▲0.081.76 ▼0.1345.04 ▲0.89
Dashboard /wp-admin2,196 ▲195.48 ▼0.1784.20 ▼12.9039.69 ▼6.18
Posts /wp-admin/edit.php2,101 ▲41.98 ▲0.0335.43 ▼0.7031.43 ▼5.05
Add New Post /wp-admin/post-new.php1,531 ▲323.25 ▼0.06685.46 ▼4.4853.48 ▼7.97
Media Library /wp-admin/upload.php1,407 ▲74.21 ▲0.0498.13 ▼13.0045.57 ▼5.96
Image Wall /wp-admin/options-general.php?page=image-wall-settings9802.0026.0039.76

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/image-wall/image-wall.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (An example image wall.), #2 (The admin screen.)
The official readme.txt might help

image-wall/image-wall.php 92% from 13 tests

"Image Wall" version 3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected740 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1142105550
CSS1162113
JavaScript3211977

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions12
▷ Named functions12100.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
TMNlogo.png40.68KB15.52KB▼ 61.86%