10% phpls

Code Review | PhpList Subber

WordPress plugin PhpList Subber scored 10% from 54 tests.

About plugin

  • Plugin page: phpls
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4.2
  • WordPress version: 5.8.1
  • First release: Aug 5, 2019
  • Latest release: Jul 24, 2020
  • Number of updates: 7
  • Update frequency: every 50.6 days
  • Top authors: vinzzb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 1,302 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Parse error in wp-content/plugins/phpls/admin/init.php+176
    syntax error, unexpected end of file

Server metrics [RAM: ▼0.00MB] [CPU: ▼148.14ms] Passed 4 tests

A check of server-side resources used by PhpList Subber
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.0034.50 ▲1.51
Dashboard /wp-admin3.06 ▲0.0037.65 ▼7.08
Posts /wp-admin/edit.php3.11 ▲0.0033.73 ▼9.53
Add New Post /wp-admin/post-new.php5.42 ▼0.0284.56 ▼577.16
Media Library /wp-admin/upload.php3.00 ▲0.0034.28 ▲1.22

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

PhpList Subber: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.21 ▲0.658.40 ▼1.5842.58 ▼6.88
Dashboard /wp-admin2,967 ▲365.91 ▼0.05137.41 ▼9.18113.11 ▲0.79
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0167.61 ▲0.7285.83 ▼8.45
Add New Post /wp-admin/post-new.php1,672 ▼018.81 ▲0.04367.61 ▲5.94113.30 ▲4.25
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.09157.17 ▲6.01114.08 ▼6.70

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/phpls/admin/inc/sanitize_post.php
    • > /wp-content/plugins/phpls/admin/inc/import.php
    • > /wp-content/plugins/phpls/admin/inc/notices.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/phpls/admin/pages/settings.php on line 105
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/phpls/admin/inc/meta.php on line 68
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/phpls/admin/init.php on line 176

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: subscription, phplist, newsletter

phpls/phpls.php 92% from 13 tests

The entry point to "PhpList Subber" version 1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages/")

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
No dangerous file extensions were detected1,071 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP987111981
JavaScript11590

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.20
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods3294.12%
▷ Protected methods00.00%
▷ Private methods25.88%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin