Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/any-contact/init.php+34
Undefined variable: _SESSION
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.45ms] Passed 4 tests
This is a short check of server-side resources used by Any Contact
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.35 ▼3.68 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.81 ▲2.68 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.72 ▼6.01 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.96 ▼3.02 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.16 ▼5.10 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Any Contact
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.57 ▼0.70 | 1.68 ▼0.28 | 42.95 ▼2.63 |
Dashboard /wp-admin | 2,209 ▲21 | 4.87 ▼0.01 | 103.11 ▼4.31 | 42.53 ▲2.84 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.01 ▼0.03 | 34.91 ▼0.73 | 38.14 ▲3.91 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.24 ▼4.79 | 625.49 ▼41.64 | 52.01 ▼9.70 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.23 ▲0.10 | 96.33 ▼18.14 | 41.33 ▼7.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/any-contact/captcha.php
- > /wp-content/plugins/any-contact/init.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
imagettftext(): Could not find/open font in wp-content/plugins/any-contact/captcha.php on line 23
- > PHP Notice
Undefined variable: _SESSION in wp-content/plugins/any-contact/init.php on line 34
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/any-contact/functions/html.php on line 495
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/any-contact/functions/functions.php on line 82
- > PHP Notice
Undefined variable: _SESSION in wp-content/plugins/any-contact/captcha.php on line 3
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/any-contact/functions/setup.php on line 54
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% 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 require attention:
- Screenshots: Add an image for screenshot #1 (screenshot-1.png)
any-contact/init.php 85% from 13 tests
"Any Contact" version 0.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("any-contact.php" instead of "init.php")
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
There were no executable files found in this plugin1,243 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 168 | 46 | 809 |
CSS | 2 | 31 | 98 | 277 |
JavaScript | 1 | 25 | 2 | 157 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 19.49KB | 10.41KB | ▼ 46.60% |