Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼143.36ms] Passed 4 tests
Server-side resources used by Super Simple SPAM Stopper
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 37.85 ▲11.97 |
Dashboard /wp-admin | 3.10 ▲0.05 | 42.52 ▼15.42 |
Posts /wp-admin/edit.php | 3.19 ▲0.08 | 54.45 ▲4.31 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 102.97 ▼568.13 |
Media Library /wp-admin/upload.php | 3.05 ▲0.04 | 45.03 ▲5.81 |
Super Simple SPAM Stopper /wp-admin/options-general.php?page=custom-anti-spam-settings | 3.02 | 36.07 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Super Simple SPAM Stopper
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,683 ▲87 | 15.90 ▲0.34 | 12.40 ▲3.37 | 49.92 ▼3.19 |
Dashboard /wp-admin | 2,975 ▲44 | 5.90 ▼0.08 | 160.99 ▼4.51 | 112.56 ▼5.09 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.00 | 70.00 ▼5.01 | 90.86 ▼4.94 |
Add New Post /wp-admin/post-new.php | 1,679 ▼4 | 18.85 ▲0.52 | 394.06 ▼32.05 | 121.21 ▲6.71 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.00 ▼0.02 | 168.88 ▼3.66 | 131.35 ▼10.50 |
Super Simple SPAM Stopper /wp-admin/options-general.php?page=custom-anti-spam-settings | 1,153 | 2.05 | 68.75 | 89.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test
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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: spambot, anti-spam, comment, block spam, comments...
super-simple-spam-stopper/supersimplespamstopper.php 92% from 13 tests
The primary PHP file in "Super Simple SPAM Stopper" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("super-simple-spam-stopper.php" instead of "supersimplespamstopper.php")
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
Good job! No executable or dangerous file extensions detected196 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 57 | 22 | 196 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 52.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 48.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 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
There were not PNG files found in your plugin