84% jla-antispam

Code Review | JLA Antispam

WordPress plugin JLA Antispam scored84%from 54 tests.

About plugin

  • Plugin page: jla-antispam
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.3-6.0
  • WordPress version: 6.3.1
  • First release: Jun 28, 2022
  • Latest release: Aug 4, 2022
  • Number of updates: 20
  • Update frequency: every 2.0 days
  • Top authors: jeunenathan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /258 total downloads

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
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼8.82ms] Passed 4 tests

A check of server-side resources used by JLA Antispam
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1043.67 ▲3.81
Dashboard /wp-admin3.39 ▲0.0950.12 ▼3.36
Posts /wp-admin/edit.php3.50 ▲0.1551.96 ▲0.90
Add New Post /wp-admin/post-new.php5.97 ▲0.0987.25 ▼36.63
Media Library /wp-admin/upload.php3.31 ▲0.0943.79 ▲5.60

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for JLA Antispam
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲11513.56 ▼0.982.32 ▲0.5739.55 ▼4.57
Dashboard /wp-admin2,223 ▲355.84 ▲0.98121.69 ▲11.6898.98 ▲52.65
Posts /wp-admin/edit.php2,124 ▲352.01 ▼0.0433.77 ▼7.7533.11 ▼5.48
Add New Post /wp-admin/post-new.php1,698 ▲18422.18 ▲4.40758.37 ▲121.8653.71 ▼1.02
Media Library /wp-admin/upload.php1,420 ▲324.13 ▼0.1898.51 ▼6.9373.92 ▲27.95

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/jla-antispam/jla-antispam.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

jla-antispam/jla-antispam.php Passed 13 tests

"JLA Antispam" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
50 characters long description:
Antipam maison pour les formulaires Contact Form 7

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
No dangerous file extensions were detected680 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP17087419
CSS2257181
JavaScript214079
SVG1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions1885.71%
▷ Anonymous functions314.29%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin