94% sortvisually

Code Review | Sortvisually

WordPress plugin Sortvisually scored 94% from 54 tests.

About plugin

  • Plugin page: sortvisually
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7.2
  • WordPress version: 5.9.2
  • First release: Sep 17, 2021
  • Latest release: Sep 18, 2021
  • Number of updates: 5
  • Update frequency: every 4.2 days
  • Top authors: optalentyecommerce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 110 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Sortvisually
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0353.68 ▲4.89
Dashboard /wp-admin3.43 ▲0.0232.57 ▼0.04
Posts /wp-admin/edit.php3.66 ▲0.0237.45 ▲0.54
Add New Post /wp-admin/post-new.php6.90 ▼0.0792.00 ▼1,201.86
Media Library /wp-admin/upload.php3.31 ▲0.0225.37 ▲2.27

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sortvisually
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.90 ▼0.186.72 ▲0.382.52 ▼0.20
Dashboard /wp-admin2,895 ▲376.17 ▼0.00116.48 ▼16.72154.26 ▼3.03
Posts /wp-admin/edit.php2,685 ▼93.23 ▼0.0064.59 ▲0.10142.59 ▲0.52
Add New Post /wp-admin/post-new.php1,752 ▲9121.01 ▼0.31436.96 ▲34.99153.64 ▼6.36
Media Library /wp-admin/upload.php1,698 ▼05.52 ▲0.01153.38 ▲13.14189.94 ▲7.84

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
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/sortvisually/admin/class-sortvisually-endpoints.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3 in sortvisually/assets to your readme.txt
Please take inspiration from this readme.txt

sortvisually/sortvisually.php Passed 13 tests

The main PHP script in "Sortvisually" version 1.0.0 is automatically included on every request by WordPress
72 characters long description:
Sortvisually Online Visual Merchandising - Wordpress Visual Merchandiser

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected3,890 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript25473752,546
PHP12235908816
CSS211323528

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.89
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods55
▷ Static methods00.00%
▷ Public methods3665.45%
▷ Protected methods00.00%
▷ Private methods1934.55%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin