90% the-final-word

Code Review | The Final Word

WordPress plugin The Final Word scored90%from 54 tests.

About plugin

  • Plugin page: the-final-word
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Aug 23, 2017
  • Latest release: Oct 1, 2020
  • Number of updates: 9
  • Update frequency: every 126.2 days
  • Top authors: hlashbrooke (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,506 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by The Final Word
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.68 ▼3.31
Dashboard /wp-admin3.31 ▼0.0342.88 ▼19.56
Posts /wp-admin/edit.php3.36 ▲0.0146.34 ▼5.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.56 ▼17.72
Media Library /wp-admin/upload.php3.24 ▲0.0138.12 ▲2.31

Server storage [IO: ▲0.03MB] [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: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for The Final Word
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲14013.59 ▼0.769.82 ▲7.3640.77 ▼4.01
Dashboard /wp-admin2,218 ▲185.88 ▲0.01112.60 ▲7.3542.16 ▲1.20
Posts /wp-admin/edit.php2,100 ▼02.05 ▼0.0139.43 ▼1.5835.92 ▼1.83
Add New Post /wp-admin/post-new.php1,529 ▼1617.71 ▼5.46604.68 ▼4.4852.84 ▼5.41
Media Library /wp-admin/upload.php1,403 ▲64.24 ▲0.0199.78 ▼7.2845.30 ▼3.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

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: p2, comments, discussion, comment moderation, o2

the-final-word/the-final-word.php Passed 13 tests

This is the main PHP file of "The Final Word" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
89 characters long description:
Have the final word in a comment thread by marking a chosen comment as the 'top comment'.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin184 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP166116115
JavaScript2222446
CSS10023

PHP code Passed 2 tests

An overview of 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.33
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected