89% taxonomies-sortable

Code Review | Taxonomies Sortable

WordPress plugin Taxonomies Sortable scored 89% from 54 tests.

About plugin

  • Plugin page: taxonomies-sortable
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.6
  • WordPress version: 5.8.1
  • First release: Jun 19, 2018
  • Latest release: Aug 12, 2020
  • Number of updates: 8
  • Update frequency: every 98.1 days
  • Top authors: enrico.sorcinelli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 435 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼142.30ms] Passed 4 tests

An overview of server-side resources used by Taxonomies Sortable
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1543.41 ▲22.55
Dashboard /wp-admin3.13 ▲0.0747.02 ▲0.81
Posts /wp-admin/edit.php3.24 ▲0.1345.34 ▲1.18
Add New Post /wp-admin/post-new.php5.50 ▲0.0693.22 ▼564.28
Media Library /wp-admin/upload.php3.07 ▲0.0632.61 ▼6.90
Taxonomies Sortable /wp-admin/options-general.php?page=taxonomies_sortable_plugin_general_settings3.0627.49

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Taxonomies Sortable: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11216.41 ▲0.819.30 ▼0.6249.06 ▲2.98
Dashboard /wp-admin2,972 ▲415.91 ▼0.00138.69 ▼4.95109.45 ▼9.71
Posts /wp-admin/edit.php2,744 ▲52.71 ▲0.0064.03 ▼4.2787.54 ▼4.97
Add New Post /wp-admin/post-new.php1,625 ▼4722.07 ▲3.32284.10 ▼87.38105.18 ▼5.53
Media Library /wp-admin/upload.php1,815 ▲85.03 ▼0.00170.86 ▲23.81120.21 ▲1.17
Taxonomies Sortable /wp-admin/options-general.php?page=taxonomies_sortable_plugin_general_settings1,2142.3560.1872.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/taxonomies-sortable/php/adminpages/credits.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_taxonomies() in wp-content/plugins/taxonomies-sortable/php/adminpages/general-settings.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=taxonomies_sortable_plugin_general_settings
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
    tagsSuggestL10n.tagDelimiter is deprecated since version 5.5.0! Use wp.i18n instead.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: admin, taxonomy

taxonomies-sortable/taxonomies-sortable.php Passed 13 tests

Analyzing the main PHP file in "Taxonomies Sortable" version 1.0.1
31 characters long description:
A WordPress Taxonomies Sortable

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected384 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7102289312
CSS112540
JavaScript171032

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity11.67
▷ Minimum class complexity11.00
▷ Maximum class complexity12.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods631.58%
▷ Public methods1894.74%
▷ Protected methods00.00%
▷ Private methods15.26%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin