Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/ct-contact/ct-contact.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; ct_Contact has a deprecated constructor
Server metrics [RAM: ▼1.89MB] [CPU: ▼53.21ms] Passed 4 tests
This is a short check of server-side resources used by CT Contact
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.88 ▼34.91 |
Dashboard /wp-admin | 2.12 ▼1.18 | 6.78 ▼43.53 |
Posts /wp-admin/edit.php | 2.12 ▼1.23 | 7.13 ▼36.34 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.76 | 6.69 ▼98.07 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 6.10 ▼26.19 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_ct_contact |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CT Contact
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.22 ▼1.16 | 1.82 ▲0.07 | 45.56 ▲1.41 |
Dashboard /wp-admin | 2,206 ▲14 | 5.86 ▲0.91 | 111.33 ▼11.33 | 43.42 ▼3.63 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 33.87 ▼0.55 | 36.75 ▲2.29 |
Add New Post /wp-admin/post-new.php | 1,535 ▲21 | 23.21 ▲5.66 | 672.98 ▲19.17 | 57.15 ▲1.59 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.24 ▲0.03 | 95.21 ▲0.55 | 41.99 ▼1.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/ct-contact/ct-contact.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; ct_Contact has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_ct_contact
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
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
Good news, no errors were detected
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/ct-contact/ct-contact.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
ct-contact/ct-contact.php Passed 13 tests
The main PHP file in "CT Contact" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
35 characters long description:
A simple contact information widget
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin154 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 15 | 14 | 97 |
PO File | 1 | 13 | 12 | 40 |
CSS | 1 | 6 | 12 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/google-plus.png | 0.53KB | 0.49KB | ▼ 8.97% |
assets/images/twitter.png | 0.58KB | 0.52KB | ▼ 9.97% |
assets/images/email.png | 0.61KB | 0.49KB | ▼ 20.99% |
assets/images/flickr.png | 0.59KB | 0.50KB | ▼ 14.00% |
assets/images/facebook.png | 0.54KB | 0.43KB | ▼ 20.76% |