74% shoot-the-zombie

Code Review | Shoot the zombie

WordPress plugin Shoot the zombie scored74%from 54 tests.

About plugin

  • Plugin page: shoot-the-zombie
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: Jan 12, 2015
  • Latest release: Jan 14, 2015
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: pupilnv (80%)axelmolokini (40%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,271 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.95MB] [CPU: ▼56.43ms] Passed 4 tests

A check of server-side resources used by Shoot the zombie
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.424.25 ▼32.28
Dashboard /wp-admin2.07 ▼1.285.13 ▼66.27
Posts /wp-admin/edit.php2.07 ▼1.295.71 ▼37.79
Add New Post /wp-admin/post-new.php2.07 ▼3.826.10 ▼89.38
Media Library /wp-admin/upload.php2.07 ▼1.164.92 ▼27.60

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Shoot the zombie
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲17013.78 ▼0.745.51 ▲3.7837.55 ▼2.99
Dashboard /wp-admin2,213 ▲284.89 ▼0.9299.63 ▼0.5738.54 ▼3.79
Posts /wp-admin/edit.php2,090 ▲42.03 ▼0.0236.47 ▼0.8333.89 ▼0.38
Add New Post /wp-admin/post-new.php1,523 ▲223.32 ▲0.02669.32 ▼15.0960.66 ▼0.08
Media Library /wp-admin/upload.php1,395 ▲74.20 ▲0.0398.72 ▼7.1544.15 ▼2.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the scripts2 handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/shoot-the-zombie/shoot-the-zombie.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
There were not plugin tags detected

shoot-the-zombie/shoot-the-zombie.php Passed 13 tests

The main PHP file in "Shoot the zombie" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
52 characters long description:
Add a button to your page and start shooting zombies

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin96 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript118141
XML40020
PO File11118
PHP2442017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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.22MB with 0.15MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/zombie1.png226.15KB76.28KB▼ 66.27%