Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼1.04MB] [CPU: ▼179.83ms] Passed 4 tests
Server-side resources used by OneOfOne's NoSpam
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.57 ▼0.16 | 15.71 ▼6.24 |
Dashboard /wp-admin | 2.62 ▼0.44 | 43.57 ▼1.97 |
Posts /wp-admin/edit.php | 2.62 ▼0.50 | 19.51 ▼25.20 |
Add New Post /wp-admin/post-new.php | 2.62 ▼2.82 | 17.69 ▼664.41 |
Media Library /wp-admin/upload.php | 2.62 ▼0.40 | 14.56 ▼23.45 |
OneOfOne's NoSpam /wp-admin/options-general.php?page=ooo-nospam-admin | 2.62 | 16.84 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options |
---|
ooo-nospam-count |
Browser metrics Passed 4 tests
Checking browser requirements for OneOfOne's NoSpam
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 16.05 ▲0.28 | 10.08 ▼1.53 | 59.56 ▲12.59 |
Dashboard /wp-admin | 2,975 ▲41 | 5.91 ▼0.04 | 146.37 ▼9.14 | 119.92 ▲5.71 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▲0.00 | 64.57 ▼1.35 | 101.80 ▲8.98 |
Add New Post /wp-admin/post-new.php | 1,618 ▲14 | 21.92 ▲3.42 | 270.03 ▼89.39 | 108.69 ▼5.62 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.04 ▲0.03 | 144.99 ▼0.09 | 116.73 ▼4.73 |
OneOfOne's NoSpam /wp-admin/options-general.php?page=ooo-nospam-admin | 1,140 | 2.08 | 55.13 | 102.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/oneofones-nospam/ooo-nospam.php+130
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 1 option in the database
- ooo-nospam-count
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=ooo-nospam-admin
- > Notice in wp-content/plugins/oneofones-nospam/ooo-nospam.php+130
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=ooo-nospam-admin
- > Notice in wp-content/plugins/oneofones-nospam/ooo-nospam.php+131
Undefined index: max_urls
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/oneofones-nospam/ooo-nospam.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== oneofones-nospam ===
)
oneofones-nospam/ooo-nospam.php 85% from 13 tests
"OneOfOne's NoSpam" version v0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "v0.8")
- Main file name: Name the main plugin file the same as the plugin slug ("oneofones-nospam.php" instead of "ooo-nospam.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected250 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 25 | 13 | 214 |
Markdown | 1 | 20 | 0 | 36 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 16.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin