90% simpleform-akismet

Code Review | SimpleForm Akismet

WordPress plugin SimpleForm Akismet scored90%from 54 tests.

About plugin

  • Plugin page: simpleform-akismet
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.9
  • WordPress version: 6.3.1
  • First release: Jan 20, 2021
  • Latest release: Apr 20, 2022
  • Number of updates: 5
  • Update frequency: every 92.2 days
  • Top authors: simpleform (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /766 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼5.20ms] Passed 4 tests

A check of server-side resources used by SimpleForm Akismet
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1541.03 ▼1.96
Dashboard /wp-admin3.45 ▲0.1551.70 ▲1.90
Posts /wp-admin/edit.php3.56 ▲0.2150.13 ▼1.08
Add New Post /wp-admin/post-new.php6.03 ▲0.1488.31 ▼19.65
Media Library /wp-admin/upload.php3.37 ▲0.1437.62 ▲2.20

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: 1 new table, 7 new options
New tables
wp_sform_submissions
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
sform_aks_db_version
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by SimpleForm Akismet
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.28 ▼1.101.92 ▼0.0441.80 ▼4.92
Dashboard /wp-admin2,203 ▲125.79 ▲0.92108.76 ▲2.8039.50 ▼5.85
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0739.58 ▼3.1833.96 ▼2.62
Add New Post /wp-admin/post-new.php1,542 ▲2318.40 ▼4.75654.62 ▲33.0951.81 ▼9.32
Media Library /wp-admin/upload.php1,385 ▼34.16 ▼0.0499.27 ▼7.7545.74 ▼3.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: contact form, anti-spam, spam manager, akismet, simpleform addon...

simpleform-akismet/simpleform-akismet.php Passed 13 tests

The entry point to "SimpleForm Akismet" version 1.1.2 is a PHP file that has certain tags in its header comment area
140 characters long description:
Do you get junk emails through your form? This SimpleForm addon helps prevent spam submission. To work properly you need an Akismet API Key.

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
Success! There were no dangerous files found in this plugin826 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8327373734
JavaScript214092

PHP code Passed 2 tests

A short review 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 code0.51
Average class complexity38.40
▷ Minimum class complexity3.00
▷ Maximum class complexity131.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods44
▷ Static methods613.64%
▷ Public methods3886.36%
▷ Protected methods24.55%
▷ Private methods49.09%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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