90% the-taxonomy-sort

Code Review | The Taxonomy Sort

WordPress plugin The Taxonomy Sort scored90%from 54 tests.

About plugin

  • Plugin page: the-taxonomy-sort
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-4.8
  • WordPress version: 6.3.1
  • First release: May 22, 2013
  • Latest release: Jun 22, 2017
  • Number of updates: 5
  • Update frequency: every 298.4 days
  • Top authors: RistoNiinemets (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

100+ active /4,440 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.81ms] Passed 4 tests

Analyzing server-side resources used by The Taxonomy Sort
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.42 ▼0.81
Dashboard /wp-admin3.33 ▲0.0245.38 ▼0.58
Posts /wp-admin/edit.php3.38 ▲0.0247.37 ▼3.94
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.42 ▼1.92
Media Library /wp-admin/upload.php3.25 ▲0.0235.68 ▲1.97

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for The Taxonomy Sort
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9214.43 ▼0.242.03 ▲0.3439.76 ▼8.01
Dashboard /wp-admin2,208 ▲235.88 ▲0.06102.22 ▼7.4839.33 ▼6.04
Posts /wp-admin/edit.php2,091 ▼12.05 ▲0.0036.32 ▼5.6032.12 ▼4.07
Add New Post /wp-admin/post-new.php1,536 ▲223.20 ▼0.21672.55 ▼26.1856.28 ▲0.19
Media Library /wp-admin/upload.php1,390 ▲24.27 ▲0.0694.84 ▼11.3043.15 ▼2.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: taxonomy, sorting, categories, terms, ordering

the-taxonomy-sort/the-taxonomy-sort.php Passed 13 tests

Analyzing the main PHP file in "The Taxonomy Sort" version 2.0
70 characters long description:
Allows you to easily change the order of different terms in taxonomies

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 detected92 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1277756
JavaScript151536

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin