84% wp-konami-code

Code Review | WP Konami Code

WordPress plugin WP Konami Code scored84%from 54 tests.

About plugin

  • Plugin page: wp-konami-code
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Jul 16, 2015
  • Latest release: Dec 21, 2017
  • Number of updates: 15
  • Update frequency: every 59.4 days
  • Top authors: Yslo (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /3,848 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.12MB] [CPU: ▼18.89ms] Passed 4 tests

A check of server-side resources used by WP Konami Code
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.78 ▼0.6914.11 ▼22.62
Dashboard /wp-admin3.37 ▲0.0753.05 ▼9.56
Posts /wp-admin/edit.php3.49 ▲0.1348.23 ▼4.36
Add New Post /wp-admin/post-new.php5.95 ▲0.0793.92 ▼39.00
Media Library /wp-admin/upload.php3.30 ▲0.0736.30 ▼3.19
Konami Code /wp-admin/options-general.php?page=wp-konami-code/wp-konami-code.php3.2431.38

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
wp_konami_code_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Konami Code
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▼0.331.65 ▼0.2239.79 ▼4.71
Dashboard /wp-admin2,196 ▲155.61 ▼0.1193.38 ▼15.2141.30 ▼5.49
Posts /wp-admin/edit.php2,104 ▲71.94 ▼0.0441.18 ▲2.9236.66 ▼5.17
Add New Post /wp-admin/post-new.php1,532 ▼523.37 ▲5.15646.75 ▼30.6856.18 ▼16.80
Media Library /wp-admin/upload.php1,407 ▲74.31 ▲0.1297.15 ▼9.9640.53 ▼7.23
Konami Code /wp-admin/options-general.php?page=wp-konami-code/wp-konami-code.php8941.9923.7629.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-konami-code/wp-konami-code.php
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wp-konami-code/wp-konami-code.php
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: contra, gradius, konami code, easter egg, code...

wp-konami-code/wp-konami-code.php Passed 13 tests

The primary PHP file in "WP Konami Code" version 1.0.2 is used by WordPress to initiate all plugin functionality
121 characters long description:
Add Konami Code to WordPress website and display a special page on Konami Code execution. Availble on desktop and mobile.

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
Everything looks great! No dangerous files found in this plugin417 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP35922225
JavaScript341295
PO File1171890
CSS1107

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 code0.33
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/konami-code.png1.59KB0.95KB▼ 40.52%