78% postman-widget

Code Review | Paloma Widget

WordPress plugin Paloma Widget scored 78% from 54 tests.

About plugin

  • Plugin page: postman-widget
  • Plugin version: 1.14
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Nov 8, 2012
  • Latest release: Apr 14, 2023
  • Number of updates: 36
  • Update frequency: every 105.9 days
  • Top authors: PalomaTeknik (63.89%)Nillo (38.89%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,007 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
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.97ms] Passed 4 tests

Analyzing server-side resources used by Paloma Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.73 ▲3.64
Dashboard /wp-admin3.37 ▲0.0745.97 ▼2.52
Posts /wp-admin/edit.php3.42 ▲0.0751.26 ▲6.64
Add New Post /wp-admin/post-new.php5.96 ▲0.0784.83 ▼9.89
Media Library /wp-admin/upload.php3.30 ▲0.0735.97 ▲0.89
Paloma Widget /wp-admin/options-general.php?page=paloma-widget-options3.3235.66

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_paloma_newsletter_widget
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Paloma Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲13913.99 ▼0.375.07 ▲3.2540.76 ▲3.75
Dashboard /wp-admin2,210 ▲335.90 ▲0.01110.52 ▼13.1843.20 ▼3.53
Posts /wp-admin/edit.php2,093 ▲182.06 ▲0.0438.93 ▼2.1834.30 ▼5.40
Add New Post /wp-admin/post-new.php1,540 ▲1323.25 ▲0.15665.17 ▼43.3259.61 ▲13.95
Media Library /wp-admin/upload.php1,389 ▲44.21 ▼0.15103.94 ▼17.0946.15 ▲1.08
Paloma Widget /wp-admin/options-general.php?page=paloma-widget-options8212.0425.9426.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_paloma_newsletter_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/postman-widget/apiwrapper.php
  • 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/postman-widget/paloma_widget.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/postman-widget/form.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/postman-widget/lib/class.soap_transport_http.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/postman-widget/lib/class.xmlschema.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/postman-widget/lib/class.soap_fault.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/postman-widget/lib/class.soap_parser.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/postman-widget/lib/class.wsdl.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/postman-widget/contact_form.php:18
    • > PHP Notice
      Undefined index: email in wp-content/plugins/postman-widget/apiwrapper.php on line 22
    • > PHP Warning
      require_once(Mail/mimeDecode.php): failed to open stream: No such file or directory in wp-content/plugins/postman-widget/lib/nusoapmime.php on line 42

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: email marketing, serviceware, prenumerationsruta nyhetsbrev, service, e-postmarknadsfring...

postman-widget/paloma_widget.php 92% from 13 tests

The main file in "Paloma Widget" v. 1.14 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("postman-widget.php" instead of "paloma_widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected12,470 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP201,0355,23012,228
PO File18698198
CSS17033
JavaScript11011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity77.66
▷ Minimum class complexity1.00
▷ Maximum class complexity388.00
Average method complexity9.20
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes35
▷ Abstract classes00.00%
▷ Concrete classes35100.00%
▷ Final classes00.00%
Methods327
▷ Static methods00.00%
▷ Public methods327100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin