Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.15MB] [CPU: ▲1.50ms] Passed 4 tests
An overview of server-side resources used by La Sentinelle antispam
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 35.00 ▼2.02 |
Dashboard /wp-admin | 3.47 ▲0.17 | 46.42 ▲3.40 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 50.20 ▲4.49 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 105.99 ▲6.93 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 32.07 ▲0.14 |
Server storage [IO: ▲0.18MB] [DB: ▲0.08MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 53 new files
Database: no new tables, 23 new options
New WordPress options |
---|
widget_recent-comments |
la_sentinelle-sfs |
la_sentinelle-remove_comments |
la_sentinelle-wpregister |
la_sentinelle-save_comments |
la_sentinelle-everest |
la_sentinelle-noptin |
la_sentinelle-nonce |
la_sentinelle-honeypot |
la_sentinelle-wppassword |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for La Sentinelle antispam
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,006 ▲249 | 14.10 ▼0.65 | 5.75 ▲3.88 | 39.29 ▼6.89 |
Dashboard /wp-admin | 2,219 ▲30 | 5.12 ▲0.16 | 116.17 ▼2.59 | 46.46 ▲5.04 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.05 ▲0.04 | 38.36 ▼1.46 | 36.30 ▼0.52 |
Add New Post /wp-admin/post-new.php | 1,539 ▲22 | 22.83 ▲5.20 | 720.15 ▲93.83 | 51.97 ▼0.71 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.27 ▲0.10 | 97.90 ▼5.85 | 44.55 ▼0.77 |
La Sentinelle Log /wp-admin/la-sentinelle-log.php | 26 | 0.44 | 0.08 | 18.30 |
La Sentinelle /wp-admin/la-sentinelle.php | 26 | 0.44 | 0.08 | 8.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 30× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/la-sentinelle-antispam/admin/lasent-settingspage-formupdate.php
- > /wp-content/plugins/la-sentinelle-antispam/functions/lasent-settings.php
- > /wp-content/plugins/la-sentinelle-antispam/spamfilters/lasent-nonce.php
- > /wp-content/plugins/la-sentinelle-antispam/la-sentinelle-hooks.php
- > /wp-content/plugins/la-sentinelle-antispam/admin/lasent-settingstab-about.php
- > /wp-content/plugins/la-sentinelle-antispam/forms/lasent-newsletter-optin-box.php
- > /wp-content/plugins/la-sentinelle-antispam/forms/lasent-caldera-forms.php
- > /wp-content/plugins/la-sentinelle-antispam/forms/lasent-wordpress-comment-form.php
- > /wp-content/plugins/la-sentinelle-antispam/functions/lasent-user-ip.php
- > /wp-content/plugins/la-sentinelle-antispam/spamfilters/lasent-check-spamfilters.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/la-sentinelle-antispam/forms/caldera-forms/config.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/la-sentinelle-antispam/la-sentinelle.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function la_sentinelle_get_spamfilters() in wp-content/plugins/la-sentinelle-antispam/forms/caldera-forms/field.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/la-sentinelle-antispam/forms/lasent-wpjobmanager.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/la-sentinelle-antispam/forms/caldera-forms/preview.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/la-sentinelle-antispam/spamfilters/lasent-stop-forum-spam.php:200
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/la-sentinelle-log.php
- > Network (severe)
wp-admin/la-sentinelle-log.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/la-sentinelle.php
- > Network (severe)
wp-admin/la-sentinelle.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% 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
6 plugin tags: registration, comments, antispam, stop forum spam, anti-spam...
la-sentinelle-antispam/la-sentinelle.php 85% from 13 tests
The entry point to "La Sentinelle antispam" version 2.4.7 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("la-sentinelle-antispam.php" instead of "la-sentinelle.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,865 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 774 | 822 | 2,774 |
JavaScript | 2 | 40 | 36 | 73 |
CSS | 1 | 6 | 5 | 18 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 5.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 88 | |
▷ Named functions | 88 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/icon-128x128.png | 28.46KB | 9.67KB | ▼ 66.02% |