89% 360-image

Code Review | Algori 360 Image

WordPress plugin Algori 360 Image scored89%from 54 tests.

About plugin

  • Plugin page: 360-image
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 6, 2018
  • Latest release: Jul 11, 2022
  • Number of updates: 24
  • Update frequency: every 59.8 days
  • Top authors: kevinbazira (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

4,000+ active /41,269 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: ▼8.59ms] Passed 4 tests

This is a short check of server-side resources used by Algori 360 Image
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.93 ▼3.45
Dashboard /wp-admin3.31 ▼0.0349.78 ▼17.32
Posts /wp-admin/edit.php3.36 ▲0.0148.13 ▼1.70
Add New Post /wp-admin/post-new.php5.90 ▲0.01100.21 ▼9.87
Media Library /wp-admin/upload.php3.23 ▲0.0135.34 ▼3.72

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Algori 360 Image
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲9619.71 ▲5.0918.54 ▲16.9641.57 ▼0.19
Dashboard /wp-admin2,195 ▲187.51 ▲1.84119.74 ▲27.2340.56 ▼6.36
Posts /wp-admin/edit.php2,106 ▲64.74 ▲2.7577.87 ▲40.2637.03 ▼3.76
Add New Post /wp-admin/post-new.php6,371 ▲4,84225.14 ▲1.97947.64 ▲288.6641.05 ▼21.06
Media Library /wp-admin/upload.php1,409 ▲96.55 ▲2.33126.74 ▲10.5740.96 ▼7.37

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

360-image/algori-360-image.php 85% from 13 tests

This is the main PHP file of "Algori 360 Image" version 1.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 339 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("360-image.php" instead of "algori-360-image.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected57,077 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript526,10610,96849,573
JSON4007,284
Markdown1370112
Sass312157
PHP3136050
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin