84% ctsignup

Code Review | CTSingup

WordPress plugin CTSingup scored84%from 54 tests.

About plugin

  • Plugin page: ctsignup
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.6
  • WordPress version: 6.3.1
  • First release: Sep 26, 2016
  • Latest release: Oct 8, 2016
  • Number of updates: 10
  • Update frequency: every 1.8 days
  • Top authors: yorick17 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /601 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
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼7.69ms] Passed 4 tests

This is a short check of server-side resources used by CTSingup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0941.26 ▼1.28
Dashboard /wp-admin3.41 ▲0.1049.04 ▼7.56
Posts /wp-admin/edit.php3.52 ▲0.1648.51 ▼3.31
Add New Post /wp-admin/post-new.php5.99 ▲0.1082.57 ▼14.56
Media Library /wp-admin/upload.php3.33 ▲0.1034.68 ▼5.31
CTSignup /wp-admin/options-general.php?page=ctsignup-config3.3036.42

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for CTSingup
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲12513.62 ▼0.9413.20 ▲11.5242.85 ▼4.86
Dashboard /wp-admin2,204 ▲275.69 ▲0.0383.29 ▼13.8844.56 ▲5.35
Posts /wp-admin/edit.php2,106 ▲62.06 ▲0.0435.28 ▼0.0637.81 ▲0.39
Add New Post /wp-admin/post-new.php1,531 ▲322.87 ▼0.21653.01 ▼31.3255.92 ▼7.43
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0299.25 ▼14.1442.16 ▼1.22
CTSignup /wp-admin/options-general.php?page=ctsignup-config9081.7026.0643.34

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'CalculatieTool' not found in wp-content/plugins/ctsignup/inc/mail_form.include.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'CalculatieTool' not found in wp-content/plugins/ctsignup/inc/signup_form.include.php:1

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 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
4 plugin tags: oauth client, application, calculatietool, signup

ctsignup/ctsignup.php Passed 13 tests

The principal PHP file in "CTSingup" v. 2.0 is loaded by WordPress automatically on each request
68 characters long description:
Calculatietool Signup and contact form client for CalculatieTool.com

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
No dangerous file extensions were detected583 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5141185579
JavaScript40324

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity74.00
▷ Minimum class complexity74.00
▷ Maximum class complexity74.00
Average method complexity3.03
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods36
▷ Static methods36100.00%
▷ Public methods1850.00%
▷ Protected methods00.00%
▷ Private methods1850.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.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
There are no PNG files in this plugin