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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▼0.69 | 14.11 ▼22.62 |
Dashboard /wp-admin | 3.37 ▲0.07 | 53.05 ▼9.56 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.23 ▼4.36 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 93.92 ▼39.00 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.30 ▼3.19 |
Konami Code /wp-admin/options-general.php?page=wp-konami-code/wp-konami-code.php | 3.24 | 31.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.33 | 1.65 ▼0.22 | 39.79 ▼4.71 |
Dashboard /wp-admin | 2,196 ▲15 | 5.61 ▼0.11 | 93.38 ▼15.21 | 41.30 ▼5.49 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.94 ▼0.04 | 41.18 ▲2.92 | 36.66 ▼5.17 |
Add New Post /wp-admin/post-new.php | 1,532 ▼5 | 23.37 ▲5.15 | 646.75 ▼30.68 | 56.18 ▼16.80 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.31 ▲0.12 | 97.15 ▼9.96 | 40.53 ▼7.23 |
Konami Code /wp-admin/options-general.php?page=wp-konami-code/wp-konami-code.php | 894 | 1.99 | 23.76 | 29.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 59 | 22 | 225 |
JavaScript | 3 | 4 | 12 | 95 |
PO File | 1 | 17 | 18 | 90 |
CSS | 1 | 1 | 0 | 7 |
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 code | 0.33 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 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 | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/konami-code.png | 1.59KB | 0.95KB | ▼ 40.52% |