84% swpm-postie

Code Review | Simple Membership Postie Integration

WordPress plugin Simple Membership Postie Integration scored84%from 54 tests.

About plugin

  • Plugin page: swpm-postie
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jun 22, 2017
  • Latest release: Jun 22, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: wp.insider (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /729 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.76ms] Passed 4 tests

Server-side resources used by Simple Membership Postie Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.97 ▼1.54
Dashboard /wp-admin3.32 ▲0.0151.61 ▼1.16
Posts /wp-admin/edit.php3.37 ▲0.0150.62 ▼0.38
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.26 ▼27.97
Media Library /wp-admin/upload.php3.24 ▲0.0139.60 ▲1.28

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Simple Membership Postie Integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▼0.012.20 ▲0.5044.58 ▼0.49
Dashboard /wp-admin2,206 ▲215.89 ▲0.86106.02 ▲0.6342.44 ▼5.33
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0536.49 ▼3.9134.84 ▼0.79
Add New Post /wp-admin/post-new.php1,520 ▼323.20 ▼0.11639.25 ▼120.7158.14 ▼7.04
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.02112.48 ▼2.6049.86 ▲3.79

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'SwpmUtils' not found in wp-content/plugins/swpm-postie/views/settings.php:12
    • > PHP Notice
      Undefined variable: enable_postie in wp-content/plugins/swpm-postie/views/settings.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: member, membership, integration, members, postie

swpm-postie/swpm-postie.php Passed 13 tests

This is the main PHP file of "Simple Membership Postie Integration" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
63 characters long description:
Adds Postie plugin integration to the Simple Membership plugin.

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 plugin74 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3111274

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.14
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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 images were found in this plugin