10% simple-contactology-signup

Code Review | Simple Contactology Signup

WordPress plugin Simple Contactology Signup scored10%from 54 tests.

About plugin

  • Plugin page: simple-contactolo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.6
  • WordPress version: 6.3.1
  • First release: Apr 8, 2013
  • Latest release: Apr 10, 2013
  • Number of updates: 5
  • Update frequency: every 4.2 days
  • Top authors: mordauk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,346 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/simple-contactology-signup/includes/widgets.php+6
    Methods with the same name as their class will not be constructors in a future version of PHP; scs_widget_wrapper has a deprecated constructor

Server metrics [RAM: ▼1.89MB] [CPU: ▼54.92ms] Passed 4 tests

A check of server-side resources used by Simple Contactology Signup
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.374.48 ▼37.94
Dashboard /wp-admin2.12 ▼1.1911.19 ▼43.86
Posts /wp-admin/edit.php2.12 ▼1.246.05 ▼48.30
Add New Post /wp-admin/post-new.php2.12 ▼3.775.54 ▼89.59
Media Library /wp-admin/upload.php2.12 ▼1.116.14 ▼28.42
Contactology /wp-admin/options-general.php?page=contactology2.125.83

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_scs_wrapper
widget_recent-posts

Browser metrics Passed 4 tests

Simple Contactology Signup: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.26 ▼1.101.91 ▼0.0542.94 ▼3.58
Dashboard /wp-admin2,228 ▲285.91 ▲0.8395.93 ▼15.1539.66 ▼1.91
Posts /wp-admin/edit.php2,104 ▲42.03 ▼0.0238.76 ▼0.3437.07 ▲1.45
Add New Post /wp-admin/post-new.php1,557 ▲518.46 ▼4.92651.11 ▼49.5168.74 ▲5.99
Media Library /wp-admin/upload.php1,404 ▲44.27 ▲0.0294.85 ▼8.2344.23 ▼3.49
Contactology /wp-admin/options-general.php?page=contactology8402.0530.8428.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/simple-contactology-signup/includes/widgets.php+6
    Methods with the same name as their class will not be constructors in a future version of PHP; scs_widget_wrapper has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • widget_scs_wrapper
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=contactology
    • > Deprecated in wp-content/plugins/simple-contactology-signup/includes/widgets.php+6
    Methods with the same name as their class will not be constructors in a future version of PHP; scs_widget_wrapper has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=contactology
    • > Deprecated in wp-content/plugins/simple-contactology-signup/includes/widgets.php+69
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=contactology
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in scs_widget_wrapper is deprecated since version 4.3.0! Use __construct() instead.

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 take a closer look at the following
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-contactology-signup/includes/signup-form.php:80
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-contactology-signup/contactology-signup.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-contactology-signup/includes/settings.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-contactology-signup/includes/widgets.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-contactology-signup/includes/functions.php:61

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: newsletter, contactology, mailinglist, email marketing, emails

simple-contactology-signup/contactology-signup.php 92% from 13 tests

The primary PHP file in "Simple Contactology Signup" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-contactology-signup.php" instead of "contactology-signup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,448 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP66552,1281,378
PO File1282770

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity5.50
▷ Minimum class complexity5.00
▷ Maximum class complexity6.00
Average method complexity1.06
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods155
▷ Static methods00.00%
▷ Public methods15499.35%
▷ Protected methods10.65%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin