99% 360-image

Code Review | Algori 360 Image

WordPress plugin Algori 360 Image scored 99% 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-5.8.1
  • WordPress version: 5.9.2
  • First release: Aug 6, 2018
  • Latest release: Oct 26, 2021
  • Number of updates: 23
  • Update frequency: every 51.2 days
  • Top authors: kevinbazira (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active / 30,021 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Algori 360 Image
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0150.70 ▼8.49
Dashboard /wp-admin3.43 ▲0.0233.60 ▲1.55
Posts /wp-admin/edit.php3.65 ▲0.0137.92 ▼2.32
Add New Post /wp-admin/post-new.php6.89 ▼0.0892.76 ▼1,177.86
Media Library /wp-admin/upload.php3.30 ▲0.0125.91 ▲2.66

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Algori 360 Image
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,814 ▲6022.42 ▲7.2023.45 ▲16.632.82 ▲0.15
Dashboard /wp-admin2,894 ▲338.84 ▲2.70156.39 ▲24.43165.17 ▲2.87
Posts /wp-admin/edit.php2,694 ▲65.77 ▲2.5490.83 ▲25.90136.99 ▼6.34
Add New Post /wp-admin/post-new.php1,726 ▲6523.37 ▲7.32451.84 ▲61.42177.94 ▲24.56
Media Library /wp-admin/upload.php1,696 ▼27.82 ▲2.30150.79 ▲10.13185.92 ▼3.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

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

The main PHP file in "Algori 360 Image" ver. 1.0.9 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("360-image.php" instead of "algori-360-image.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 339 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
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 logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
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

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