Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.00ms] Passed 4 tests
A check of server-side resources used by Contact Info
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.03 ▼2.77 |
Dashboard /wp-admin | 3.32 ▲0.02 | 53.63 ▲3.64 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.43 ▼3.09 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.69 ▼15.61 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.02 ▼2.51 |
Contact Info /wp-admin/options-general.php?page=contact_info_afo | 3.26 | 40.11 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_contact_info_wid |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Contact Info
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲62 | 14.41 ▼0.26 | 2.15 ▲0.15 | 45.42 ▲5.54 |
Dashboard /wp-admin | 2,206 ▲26 | 5.62 ▼0.07 | 85.87 ▼4.62 | 39.08 ▼9.05 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.04 ▼0.13 | 35.23 ▼1.87 | 33.24 ▼4.06 |
Add New Post /wp-admin/post-new.php | 1,540 ▼5 | 23.09 ▼0.12 | 636.84 ▼46.72 | 34.18 ▼28.92 |
Media Library /wp-admin/upload.php | 1,417 ▲20 | 4.26 ▲0.02 | 100.21 ▼15.57 | 47.94 ▼1.99 |
Contact Info /wp-admin/options-general.php?page=contact_info_afo | 2,791 | 2.21 | 26.91 | 32.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_contact_info_wid
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/contact-info/view/frontend/widget.php
- > /wp-content/plugins/contact-info/view/admin/help.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/contact-info/view/admin/settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/contact-info/contact-info-widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/contact-info/contact-info-widget.php:3
- > PHP Notice
Undefined variable: contact_info_data in wp-content/plugins/contact-info/view/admin/help.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/contact-info/view/admin/help-support.php:3
- > PHP Notice
Undefined variable: contact_info_data in wp-content/plugins/contact-info/view/frontend/widget.php on line 3
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
contact-info/contact-info.php 92% from 13 tests
The principal PHP file in "Contact Info" v. 3.1.8 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 164 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected464 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 47 | 20 | 350 |
JavaScript | 2 | 2 | 1 | 52 |
CSS | 1 | 4 | 4 | 50 |
PO File | 1 | 5 | 0 | 12 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.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
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/rss.png | 0.60KB | 0.50KB | ▼ 16.18% |
images/paypal.png | 0.77KB | 0.80KB | 0.00% |