78% ccs-https

Code Review | CCS-HTTPS

WordPress plugin CCS-HTTPS scored78%from 54 tests.

About plugin

  • Plugin page: ccs-https
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.0-4.1
  • WordPress version: 6.3.1
  • First release: Sep 6, 2012
  • Latest release: Dec 19, 2014
  • Number of updates: 9
  • Update frequency: every 92.7 days
  • Top authors: davidgregg (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /5,313 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.30MB] [CPU: ▼14.48ms] Passed 4 tests

An overview of server-side resources used by CCS-HTTPS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.27 ▼1.199.66 ▼31.04
Dashboard /wp-admin3.33 ▼0.0244.49 ▼19.22
Posts /wp-admin/edit.php3.38 ▲0.0241.57 ▼4.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.08 ▼3.27
Media Library /wp-admin/upload.php3.25 ▲0.0133.65 ▲0.39
CCS-HTTPS /wp-admin/options-general.php?page=ccs_https_options3.1929.43

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for CCS-HTTPS
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.59 ▼1.001.92 ▲0.0140.02 ▼10.41
Dashboard /wp-admin2,213 ▲254.85 ▼0.03107.98 ▼10.2139.40 ▼6.46
Posts /wp-admin/edit.php2,096 ▲101.97 ▼0.0835.19 ▼2.2330.10 ▼2.49
Add New Post /wp-admin/post-new.php1,536 ▲1723.23 ▼0.02595.92 ▼104.0348.59 ▼6.24
Media Library /wp-admin/upload.php1,389 ▲14.23 ▲0.0597.33 ▼15.3244.58 ▼4.84
CCS-HTTPS /wp-admin/options-general.php?page=ccs_https_options8082.0523.8626.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=ccs_https_options
    • > Notice in wp-content/plugins/ccs-https/ccs-https.php+80
    Trying to access array offset on value of type bool

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ccs-https/ccs-https.php:102

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === ccs-https === )
You can take inspiration from this readme.txt

ccs-https/ccs-https.php 92% from 13 tests

This is the main PHP file of "CCS-HTTPS" 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
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 282 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected69 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1162169

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected