89% cc-update

Code Review | CC-Update

WordPress plugin CC-Update scored89%from 54 tests.

About plugin

  • Plugin page: cc-update
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.2-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 25, 2018
  • Latest release: Jun 25, 2018
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: ClearcodeHQ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /657 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.33MB] [CPU: ▲1.93ms] Passed 4 tests

This is a short check of server-side resources used by CC-Update
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3841.49 ▼1.45
Dashboard /wp-admin3.67 ▲0.3652.57 ▲3.73
Posts /wp-admin/edit.php3.72 ▲0.3650.84 ▲2.01
Add New Post /wp-admin/post-new.php6.18 ▲0.3096.10 ▲3.41
Media Library /wp-admin/upload.php3.53 ▲0.3039.23 ▲7.26
Logs /wp-admin/admin.php?page=cc-update-logs3.5238.83
Settings /wp-admin/admin.php?page=cc-update-settings3.5238.27

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 66 new files
Database: 1 new table, 6 new options
New tables
wp_cc_update_log
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for CC-Update
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲11113.19 ▼1.471.50 ▼0.3840.26 ▼8.78
Dashboard /wp-admin2,245 ▲604.80 ▼1.02112.16 ▲12.2642.17 ▼1.61
Posts /wp-admin/edit.php2,125 ▲362.03 ▲0.0135.76 ▼0.9931.32 ▼0.88
Add New Post /wp-admin/post-new.php1,552 ▲3823.20 ▲5.58592.89 ▲8.6051.02 ▼9.46
Media Library /wp-admin/upload.php1,427 ▲424.22 ▲0.04102.10 ▲3.4140.87 ▼4.05
Logs /wp-admin/admin.php?page=cc-update-logs9212.0425.8025.47
Settings /wp-admin/admin.php?page=cc-update-settings9442.1725.4425.52

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (**CC-Update Settings** - Visit the 'Update > Settings' page, select your preferred options and save them.), #2 (**CC-Update Logs** - Visit the 'Update > Logs' page to review latest updates logs.)
The official readme.txt is a good inspiration

cc-update/plugin.php 92% from 13 tests

This is the main PHP file of "CC-Update" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cc-update.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,633 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP334064261,410
PO File14145114
JSON30094
Markdown1508
CSS2007

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity12.44
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits1
Classes15
▷ Abstract classes16.67%
▷ Concrete classes1493.33%
▷ Final classes00.00%
Methods127
▷ Static methods2015.75%
▷ Public methods10683.46%
▷ Protected methods1814.17%
▷ Private methods32.36%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png62.09KB18.92KB▼ 69.53%
screenshot-2.png72.99KB20.66KB▼ 71.70%