Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.79ms] Passed 4 tests
Server-side resources used by Contact Page
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.27 ▼3.46 |
Dashboard /wp-admin | 3.34 ▼0.01 | 49.81 ▼15.74 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.95 ▼0.36 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 111.97 ▲19.13 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 42.65 ▲4.42 |
Contact Page /wp-admin/options-general.php?page=contact-page | 3.22 | 34.20 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 136 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Contact Page
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲83 | 13.30 ▼1.10 | 1.83 ▲0.11 | 43.16 ▼3.79 |
Dashboard /wp-admin | 2,228 ▲25 | 4.89 ▼0.01 | 99.47 ▼29.31 | 37.96 ▼18.38 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.01 | 39.89 ▲0.86 | 38.80 ▲2.77 |
Add New Post /wp-admin/post-new.php | 1,529 ▼17 | 17.71 ▼5.38 | 623.43 ▼17.12 | 54.35 ▼7.11 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.21 ▼0.00 | 116.76 ▲10.02 | 52.37 ▲0.05 |
Contact Page /wp-admin/options-general.php?page=contact-page | 1,041 | 2.18 | 26.54 | 34.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5737
Function unregister_setting was called with an argument that is deprecated since version 4.7.0! $sanitize_callback is deprecated. The callback from register_setting() is used instead.
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/contact-page/contact-page.php:48
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (The page that is generated by the plugin)
contact-page/contact-page.php Passed 13 tests
This is the main PHP file of "Contact Page" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
140 characters long description:
Easily create a contact page with relevant address information, Google Maps, your latest tweets and links to relevant social media profiles.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin442 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 65 | 75 | 374 |
CSS | 1 | 19 | 12 | 68 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
131 PNG files occupy 0.53MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/social-media/16/steam.png | 0.63KB | 0.52KB | ▼ 17.86% |
screenshot-2.png | 254.17KB | 88.87KB | ▼ 65.04% |
assets/images/social-media/32/twitter.png | 0.94KB | 0.97KB | 0.00% |
assets/images/social-media/32/bebo.png | 0.97KB | 0.99KB | 0.00% |
assets/images/social-media/16/friendfeed.png | 0.69KB | 0.73KB | 0.00% |