83% xoo-sort

Code Review | Xoo Sort

WordPress plugin Xoo Sort scored83%from 54 tests.

About plugin

  • Plugin page: xoo-sort
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jan 9, 2018
  • Latest release: Jan 9, 2018
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: xoocode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /571 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Xoo Sort
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.61 ▼6.07
Dashboard /wp-admin3.32 ▼0.0348.01 ▼12.59
Posts /wp-admin/edit.php3.37 ▲0.0147.81 ▲5.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.25 ▼5.28
Media Library /wp-admin/upload.php3.24 ▲0.0134.11 ▲0.96
Xoo Sort /wp-admin/admin.php?page=xoo_sort3.1830.70

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Xoo Sort: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4713.24 ▼1.074.03 ▲2.1142.39 ▼1.96
Dashboard /wp-admin2,227 ▲424.86 ▼1.1897.59 ▼9.6590.44 ▲47.07
Posts /wp-admin/edit.php2,113 ▲241.97 ▼0.0837.92 ▼3.6133.69 ▼4.85
Add New Post /wp-admin/post-new.php1,539 ▲1923.22 ▼0.01688.33 ▲44.7554.01 ▼2.92
Media Library /wp-admin/upload.php1,406 ▲154.12 ▼0.0795.35 ▼6.7270.35 ▲26.38
Xoo Sort /wp-admin/admin.php?page=xoo_sort1,0151.7224.9530.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=xoo_sort
    • > Warning in wp-content/plugins/xoo-sort/xoo-sort.php+80
    Invalid argument supplied for foreach()
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=xoo_sort
    • > Notice in wp-content/plugins/xoo-sort/xoo-sort.php+80
    Undefined variable: admin_bar_menus

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

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Screenshots: Please add an image for screenshot #1 (Sort list of your websites on network install alphabetically.)
You can look at the official readme.txt

xoo-sort/xoo-sort.php 92% from 13 tests

"Xoo Sort" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
There were no executable files found in this plugin597 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP373128425
CSS193158
JavaScript10014

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions29
▷ Named functions2379.31%
▷ Anonymous functions620.69%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
static/img/xoocode.favicon.menu.png0.43KB0.33KB▼ 21.87%