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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.25 ▼4.15 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.01 ▼5.38 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.12 ▼9.29 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 82.53 ▼12.77 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.80 ▲2.16 |
SpamShiv Lite Changelog /wp-admin/admin.php?page=spamshiv-lite-changelog | 3.23 | 31.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▼0.17 | 1.68 ▼0.22 | 43.57 ▼1.89 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▼0.03 | 102.18 ▼12.29 | 39.85 ▼5.69 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.07 | 33.53 ▼7.81 | 34.24 ▲0.06 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.75 ▼5.57 | 699.80 ▲83.53 | 64.26 ▲14.50 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.30 ▲0.07 | 99.43 ▲1.57 | 43.83 ▼1.20 |
SpamShiv Lite Changelog /wp-admin/admin.php?page=spamshiv-lite-changelog | 1,037 | 2.01 | 23.15 | 24.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 69 | 61 | 187 |
SVG | 3 | 0 | 1 | 168 |
CSS | 1 | 6 | 0 | 25 |
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 code | 0.15 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 12 | 92.31% |
▷ Public methods | 13 | 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 | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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