89% cc-id-column

Code Review | CC-ID-Column

WordPress plugin CC-ID-Column scored89%from 54 tests.

About plugin

  • Plugin page: cc-id-column
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.4-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 28, 2018
  • Latest release: Feb 28, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: ClearcodeHQ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /765 total downloads

Benchmarks

Plugin footprint 83% 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.00MB] [CPU: ▼8.73ms] Passed 4 tests

An overview of server-side resources used by CC-ID-Column
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.80 ▼3.44
Dashboard /wp-admin3.32 ▼0.0349.97 ▼16.35
Posts /wp-admin/edit.php3.37 ▲0.0149.79 ▲1.60
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.88 ▼12.75
Media Library /wp-admin/upload.php3.24 ▲0.0133.21 ▼2.36

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

CC-ID-Column: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲5414.72 ▲0.361.56 ▼0.0442.21 ▼2.44
Dashboard /wp-admin2,195 ▲155.63 ▲0.0186.31 ▼12.4836.58 ▼5.58
Posts /wp-admin/edit.php2,112 ▲152.00 ▼0.0136.02 ▲0.4331.01 ▼6.99
Add New Post /wp-admin/post-new.php1,536 ▲1023.30 ▲0.29688.33 ▲11.2369.38 ▲12.92
Media Library /wp-admin/upload.php1,400 ▼34.21 ▲0.03104.26 ▲2.3448.43 ▲1.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
  • Screenshots: Add an image for screenshot #1 (**CC-ID-Column** - Visit the 'Posts > All Posts` or `Pages > All Pages` or 'Custom Post Type` posts list page.)
The official readme.txt is a good inspiration

cc-id-column/plugin.php 77% from 13 tests

"CC-ID-Column" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Domain Path: Prefix the domain path with a forward slash character ("//")
  • Domain Path: The domain path should use only dashes and lowercase characters ("/")
  • Main file name: The principal plugin file should be the same as the plugin slug ("cc-id-column.php" instead of "plugin.php")

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
Everything looks great! No dangerous files found in this plugin22 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP183419
CSS1003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png8.69KB6.00KB▼ 30.97%