84% tc-comment-out

Code Review | TC Comment Out

WordPress plugin TC Comment Out scored84%from 54 tests.

About plugin

  • Plugin page: tc-comment-out
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-5.4.2
  • WordPress version: 6.3.1
  • First release: Apr 25, 2011
  • Latest release: Jun 14, 2020
  • Number of updates: 14
  • Update frequency: every 238.4 days
  • Top authors: taupecat (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,546 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by TC Comment Out
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.91 ▲1.99
Dashboard /wp-admin3.31 ▼0.0348.20 ▼14.41
Posts /wp-admin/edit.php3.36 ▲0.0143.68 ▲0.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.13 ▼5.84
Media Library /wp-admin/upload.php3.23 ▲0.0132.40 ▲0.88

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for TC Comment Out
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.26 ▼0.281.81 ▲0.2746.11 ▲3.94
Dashboard /wp-admin2,192 ▲155.51 ▼0.1383.47 ▼2.5135.63 ▼6.71
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0135.89 ▲0.5234.02 ▲1.21
Add New Post /wp-admin/post-new.php1,528 ▼123.09 ▼0.41624.77 ▼60.1049.64 ▼7.97
Media Library /wp-admin/upload.php1,403 ▲124.20 ▲0.03100.45 ▼1.2142.09 ▲0.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function taupecat\\add_shortcode() in wp-content/plugins/tc-comment-out/class-comment-out.php:36

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)
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
3 plugin tags: hide-content, shortcode, comment-out

tc-comment-out/tc-comment-out.php Passed 13 tests

This is the main PHP file of "TC Comment Out" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
75 characters long description:
A simple way of commenting out content in a post or page using a shortcode.

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
Success! There were no dangerous files found in this plugin31 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3175131

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin