Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼1.65MB] [CPU: ▼52.52ms] Passed 4 tests
An overview of server-side resources used by Encryption contest
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.33 ▼1.13 | 6.51 ▼38.10 |
Dashboard /wp-admin | 2.36 ▼0.95 | 7.77 ▼42.75 |
Posts /wp-admin/edit.php | 2.36 ▼1.00 | 9.13 ▼37.73 |
Add New Post /wp-admin/post-new.php | 2.36 ▼3.53 | 8.73 ▼91.48 |
Media Library /wp-admin/upload.php | 2.36 ▼0.87 | 7.48 ▼28.95 |
Encryption contest /wp-admin/options-general.php?page=EcOptions | 2.36 | 10.18 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
EcData |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
EcSettings |
Browser metrics Passed 4 tests
Checking browser requirements for Encryption contest
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.25 ▼1.13 | 1.87 ▲0.07 | 44.46 ▲5.21 |
Dashboard /wp-admin | 2,207 ▲19 | 4.85 ▼0.17 | 103.17 ▼7.47 | 40.16 ▼5.63 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▲0.01 | 41.09 ▲1.78 | 35.50 ▲1.11 |
Add New Post /wp-admin/post-new.php | 1,517 ▼24 | 17.74 ▼0.60 | 615.30 ▼0.41 | 52.91 ▲0.66 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.17 ▼0.01 | 101.81 ▼0.45 | 40.53 ▼2.38 |
Encryption contest /wp-admin/options-general.php?page=EcOptions | 986 | 2.03 | 24.17 | 26.53 |
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
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method EncryptionContest::loadMultilangualDomain() should not be called statically
- Zombie WordPress options detected upon uninstall: 8 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- EcData
- db_upgraded
- EcSettings
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=EcOptions
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method EncryptionContest::loadMultilangualDomain() should not be called statically
- > GET request to /wp-admin/options-general.php?page=EcOptions
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method EcOptions::addOptionsPage() should not be called statically
- > GET request to /wp-admin/options-general.php?page=EcOptions
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method EcMenu::addMenuPage() should not be called statically
- > GET request to /wp-admin/options-general.php?page=EcOptions
- > Notice in wp-content/plugins/encryption-contest/includes/ec-menu.php+17
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=EcOptions
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method EcOptions::registerSettings() should not be called statically
- > GET request to /wp-admin/options-general.php?page=EcOptions
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method EcMenu::registerSettings() should not be called statically
- > GET request to /wp-admin/options-general.php?page=EcOptions
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method EcOptions::pageContent() should not be called statically
- > GET request to /wp-admin/options-general.php?page=EcOptions
- > User deprecated in wp-includes/functions.php+5737
Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead.
SRP 50% 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 fix the following items
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/encryption-contest/includes/ec-options.php
- > /wp-content/plugins/encryption-contest/includes/ec-codes.php
- > /wp-content/plugins/encryption-contest/includes/ec-menu.php
- > /wp-content/plugins/encryption-contest/includes/countdown.php
- > /wp-content/plugins/encryption-contest/encryption-contest.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 17 tag instead of maximum 10
encryption-contest/encryption-contest.php 92% from 13 tests
The principal PHP file in "Encryption contest" v. 1.1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 410 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
There were no executable files found in this plugin1,593 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 196 | 63 | 1,148 |
PO File | 2 | 192 | 221 | 445 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 23.75 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 60 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 60 | 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/smile.png | 4.79KB | 2.50KB | ▼ 47.82% |
includes/encryption-icon20x20.png | 0.55KB | 0.78KB | 0.00% |