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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 41.26 ▼1.28 |
Dashboard /wp-admin | 3.41 ▲0.10 | 49.04 ▼7.56 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.51 ▼3.31 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 82.57 ▼14.56 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.68 ▼5.31 |
CTSignup /wp-admin/options-general.php?page=ctsignup-config | 3.30 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲125 | 13.62 ▼0.94 | 13.20 ▲11.52 | 42.85 ▼4.86 |
Dashboard /wp-admin | 2,204 ▲27 | 5.69 ▲0.03 | 83.29 ▼13.88 | 44.56 ▲5.35 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.06 ▲0.04 | 35.28 ▼0.06 | 37.81 ▲0.39 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 22.87 ▼0.21 | 653.01 ▼31.32 | 55.92 ▼7.43 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▲0.02 | 99.25 ▼14.14 | 42.16 ▼1.22 |
CTSignup /wp-admin/options-general.php?page=ctsignup-config | 908 | 1.70 | 26.06 | 43.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 141 | 185 | 579 |
JavaScript | 4 | 0 | 32 | 4 |
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 code | 0.40 |
Average class complexity | 74.00 |
▷ Minimum class complexity | 74.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 36 | 100.00% |
▷ Public methods | 18 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 50.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.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