Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/simple-contact-info-widget/simple-contact-info-widget.php+253
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼51.43ms] Passed 4 tests
An overview of server-side resources used by Contact Info Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 3.76 ▼31.67 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.62 ▼38.04 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.06 ▼37.89 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.72 ▼98.11 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.97 ▼28.98 |
Contact Info Widget /wp-admin/options-general.php?page=contact-info-widget | 2.05 | 5.96 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_contact_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Contact Info Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.27 ▼1.05 | 5.03 ▲3.40 | 37.25 ▼0.79 |
Dashboard /wp-admin | 2,210 ▲21 | 5.85 ▲0.93 | 113.42 ▼31.38 | 43.02 ▼5.20 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.00 | 39.90 ▲0.83 | 36.19 ▲1.36 |
Add New Post /wp-admin/post-new.php | 1,536 ▼10 | 23.46 ▲4.94 | 667.57 ▲42.57 | 48.71 ▼2.53 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.27 ▼0.03 | 95.81 ▼5.83 | 42.18 ▼2.06 |
Contact Info Widget /wp-admin/options-general.php?page=contact-info-widget | 857 | 2.14 | 22.34 | 29.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/simple-contact-info-widget/simple-contact-info-widget.php+253
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_contact_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=contact-info-widget
- > Deprecated in wp-content/plugins/simple-contact-info-widget/simple-contact-info-widget.php+253
Function create_function() is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/simple-contact-info-widget/simple-contact-info-widget.php
- > /wp-content/plugins/simple-contact-info-widget/settings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
simple-contact-info-widget/simple-contact-info-widget.php Passed 13 tests
The primary PHP file in "Contact Info Widget" version 2.6.2 is used by WordPress to initiate all plugin functionality
51 characters long description:
A simple Wordpress widget that shows contact info.
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
Success! There were no dangerous files found in this plugin440 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 55 | 21 | 259 |
PO File | 3 | 69 | 69 | 180 |
CSS | 1 | 1 | 7 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 7 | |
▷ Named functions | 7 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 20.58KB | 9.56KB | ▼ 53.54% |
images/stars.png | 0.59KB | 0.45KB | ▼ 24.13% |