68% encryption-contest

Code Review | Encryption contest

WordPress plugin Encryption contest scored 68% from 54 tests.

About plugin

  • Plugin page: encryption-contest
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 9, 2015
  • Latest release: Jul 19, 2015
  • Number of updates: 13
  • Update frequency: every 0.8 days
  • Top authors: ShippeR (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 891 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.33 ▼1.136.51 ▼38.10
Dashboard /wp-admin2.36 ▼0.957.77 ▼42.75
Posts /wp-admin/edit.php2.36 ▼1.009.13 ▼37.73
Add New Post /wp-admin/post-new.php2.36 ▼3.538.73 ▼91.48
Media Library /wp-admin/upload.php2.36 ▼0.877.48 ▼28.95
Encryption contest /wp-admin/options-general.php?page=EcOptions2.3610.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.25 ▼1.131.87 ▲0.0744.46 ▲5.21
Dashboard /wp-admin2,207 ▲194.85 ▼0.17103.17 ▼7.4740.16 ▼5.63
Posts /wp-admin/edit.php2,093 ▲12.00 ▲0.0141.09 ▲1.7835.50 ▲1.11
Add New Post /wp-admin/post-new.php1,517 ▼2417.74 ▼0.60615.30 ▼0.4152.91 ▲0.66
Media Library /wp-admin/upload.php1,392 ▲74.17 ▼0.01101.81 ▼0.4540.53 ▼2.38
Encryption contest /wp-admin/options-general.php?page=EcOptions9862.0324.1726.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
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP5196631,148
PO File2192221445

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 code0.17
Average class complexity23.75
▷ Minimum class complexity4.00
▷ Maximum class complexity41.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods60
▷ Static methods00.00%
▷ Public methods60100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
includes/smile.png4.79KB2.50KB▼ 47.82%
includes/encryption-icon20x20.png0.55KB0.78KB0.00%