78% wp-mailinglijst

Code Review | Mailinglijst

WordPress plugin Mailinglijst scored78%from 54 tests.

About plugin

  • Plugin page: wp-mailinglijst
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.8
  • WordPress version: 6.3.1
  • First release: Dec 12, 2013
  • Latest release: Dec 12, 2013
  • Number of updates: 11
  • Update frequency: N/A
  • Top authors: slimndap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /908 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼9.48ms] Passed 4 tests

Analyzing server-side resources used by Mailinglijst
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.21 ▼1.90
Dashboard /wp-admin3.37 ▲0.0348.32 ▼17.44
Posts /wp-admin/edit.php3.48 ▲0.1350.02 ▲0.60
Add New Post /wp-admin/post-new.php5.95 ▲0.0780.97 ▼19.17
Media Library /wp-admin/upload.php3.29 ▲0.0737.63 ▲2.66
Mailinglijst /wp-admin/options-general.php?page=mailinglijst-admin3.2431.91

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_mailinglijst_widget
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Mailinglijst
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.24 ▲0.001.75 ▲0.1040.94 ▼1.06
Dashboard /wp-admin2,211 ▲315.62 ▼0.0884.48 ▼4.5137.55 ▼0.28
Posts /wp-admin/edit.php2,095 ▼82.11 ▲0.1036.53 ▼2.0432.03 ▼2.67
Add New Post /wp-admin/post-new.php1,549 ▲1318.24 ▲0.17635.39 ▼2.1494.96 ▼1.29
Media Library /wp-admin/upload.php1,413 ▲134.21 ▼0.04105.03 ▼8.4642.91 ▼2.12
Mailinglijst /wp-admin/options-general.php?page=mailinglijst-admin8502.0423.3031.52

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
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_mailinglijst_widget
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=mailinglijst-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=mailinglijst-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-mailinglijst/options.php:190
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-mailinglijst/options.php:190

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 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: shortcode, newsletter, mailinglijst, plugin, signup...

wp-mailinglijst/mailinglijst.php 85% from 13 tests

"Mailinglijst" version 0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-mailinglijst.php" instead of "mailinglijst.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
There were no executable files found in this plugin310 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP24141208
PO File214054
JavaScript291229
CSS10016
Markdown1103

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.33
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected