WordPress plugin SpamShiv Lite scored83%from 54 tests.

About plugin

  • Plugin page: spamshiv-lite-e-m...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-5.8.3
  • WordPress version: 6.3.1
  • First release: Nov 25, 2008
  • Latest release: Jan 15, 2022
  • Number of updates: 27
  • Update frequency: every 177.7 days
  • Top authors: brandondove (62.96%)nateconley (40.74%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /5,816 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.90ms] Passed 4 tests

Server-side resources used by SpamShiv Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.25 ▼4.15
Dashboard /wp-admin3.33 ▲0.0345.01 ▼5.38
Posts /wp-admin/edit.php3.38 ▲0.0345.12 ▼9.29
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.53 ▼12.77
Media Library /wp-admin/upload.php3.25 ▲0.0335.80 ▲2.16
SpamShiv Lite Changelog /wp-admin/admin.php?page=spamshiv-lite-changelog3.2331.87

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

SpamShiv Lite: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.171.68 ▼0.2243.57 ▼1.89
Dashboard /wp-admin2,203 ▲155.83 ▼0.03102.18 ▼12.2939.85 ▼5.69
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0733.53 ▼7.8134.24 ▲0.06
Add New Post /wp-admin/post-new.php1,514 ▼1917.75 ▼5.57699.80 ▲83.5364.26 ▲14.50
Media Library /wp-admin/upload.php1,388 ▼04.30 ▲0.0799.43 ▲1.5743.83 ▼1.20
SpamShiv Lite Changelog /wp-admin/admin.php?page=spamshiv-lite-changelog1,0372.0123.1524.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/spamshiv-lite-e-mail-address-protection/pj-spamshiv.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/spamshiv-lite-e-mail-address-protection/views/changelog.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/spamshiv-lite-e-mail-address-protection/lib/changelog.php:22

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: contact, email obfuscating, email, anti-spam, mailto

spamshiv-lite-e-mail-address-protection/pj-spamshiv.php 77% from 13 tests

"SpamShiv Lite" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 745 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("spamshiv-lite-e-mail-address-protection.php" instead of "pj-spamshiv.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected380 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP36961187
SVG301168
CSS16025

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.50
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods1292.31%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin