80% sortable-word-count-reloaded

Code Review | Sortable Word Count Reloaded

WordPress plugin Sortable Word Count Reloaded scored80%from 54 tests.

About plugin

  • Plugin page: sortable-word-cou...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Mar 19, 2019
  • Latest release: Sep 23, 2023
  • Number of updates: 21
  • Update frequency: every 78.6 days
  • Top authors: apasionados (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

3,000+ active /8,935 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.92ms] Passed 4 tests

Analyzing server-side resources used by Sortable Word Count Reloaded
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0242.66 ▲2.20
Dashboard /wp-admin3.38 ▲0.0449.75 ▼9.84
Posts /wp-admin/edit.php3.50 ▲0.1052.95 ▼3.25
Add New Post /wp-admin/post-new.php5.96 ▲0.0392.12 ▼15.13
Media Library /wp-admin/upload.php3.30 ▲0.0337.09 ▲0.54

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
apa_swcr_option_word_count

Browser metrics Passed 4 tests

An overview of browser requirements for Sortable Word Count Reloaded
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.35 ▼0.201.68 ▲0.1439.30 ▲1.50
Dashboard /wp-admin2,200 ▲205.65 ▼0.0294.29 ▲5.1938.00 ▼4.06
Posts /wp-admin/edit.php2,132 ▲291.98 ▼0.0533.89 ▼8.7034.88 ▼0.72
Add New Post /wp-admin/post-new.php1,537 ▲318.42 ▼6.16668.23 ▲0.6572.85 ▼6.54
Media Library /wp-admin/upload.php1,393 ▼74.18 ▼0.04100.43 ▼5.1242.51 ▼2.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall successfully, leaving 7 files (0.05MB) in the plugin directory
    • (new file) languages/sortable-word-count-reloaded-es_ES.mo
    • (new file) languages/sortable-word-count-reloaded-es_ES.po
    • (new file) readme.txt
    • (new file) license.txt
    • (new file) sortable-word-count-reloaded.php
    • (new file) index.php
    • (new file) languages/sortable-word-count-reloaded.pot
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • apa_swcr_option_word_count
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
8 plugin tags: posts, column, sortable, admin, word count...

sortable-word-count-reloaded/sortable-word-count-reloaded.php Passed 13 tests

The main file in "Sortable Word Count Reloaded" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
72 characters long description:
Adds a sortable column to the posts and pages admin with the word count.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin155 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22783109
PO File17746

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin