90% okcom-sort-and-show-id-slug-thumbnails

Code Review | OKCOM Sort and Show ID Slug Thumbnails

WordPress plugin OKCOM Sort and Show ID Slug Thumbnails scored90%from 54 tests.

About plugin

  • Plugin page: okcom-sort-and-sh...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5.1
  • WordPress version: 6.3.1
  • First release: Jul 18, 2020
  • Latest release: Nov 23, 2020
  • Number of updates: 21
  • Update frequency: every 6.9 days
  • Top authors: okcom125 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /501 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.36ms] Passed 4 tests

This is a short check of server-side resources used by OKCOM Sort and Show ID Slug Thumbnails
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0733.74 ▼6.42
Dashboard /wp-admin3.36 ▲0.0641.80 ▼8.07
Posts /wp-admin/edit.php3.48 ▲0.1348.74 ▲3.50
Add New Post /wp-admin/post-new.php5.94 ▲0.0678.91 ▼10.44
Media Library /wp-admin/upload.php3.28 ▲0.0638.03 ▲6.39

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

OKCOM Sort and Show ID Slug Thumbnails: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.27 ▼1.111.58 ▼0.9539.62 ▼5.29
Dashboard /wp-admin2,206 ▲184.83 ▼0.98115.21 ▼1.5742.67 ▼2.67
Posts /wp-admin/edit.php2,194 ▲1232.16 ▲0.1141.02 ▲3.4444.69 ▲7.89
Add New Post /wp-admin/post-new.php1,542 ▲818.38 ▼4.82630.77 ▼65.2959.36 ▼4.31
Media Library /wp-admin/upload.php1,382 ▼64.26 ▲0.0296.00 ▼19.0341.34 ▼8.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 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: thumbnail, id, slug, show, sort

okcom-sort-and-show-id-slug-thumbnails/okcom-sort-and-show-id-slug-thumbnails.php 92% from 13 tests

The primary PHP file in "OKCOM Sort and Show ID Slug Thumbnails" version 1.1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin178 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16155143
PO File13822
CSS14013

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity1.68
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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 files were detected