68% taamul

Code Review | Taamul - WordPress Feedback Modal Plugin

WordPress plugin Taamul - WordPress Feedback Modal Plugin scored68%from 54 tests.

About plugin

  • Plugin page: taamul
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2021
  • Latest release: Feb 8, 2023
  • Number of updates: 22
  • Update frequency: every 30.5 days
  • Top authors: taamul (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,101 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▲1.09ms] Passed 4 tests

Server-side resources used by Taamul - WordPress Feedback Modal Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.30271.52 ▲230.35
Dashboard /wp-admin3.47 ▲0.1751.45 ▼0.52
Posts /wp-admin/edit.php3.58 ▲0.2353.50 ▲1.92
Add New Post /wp-admin/post-new.php6.05 ▲0.1686.82 ▼5.16
Media Library /wp-admin/upload.php3.39 ▲0.1640.54 ▲8.11

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 108 new files
Database: 1 new table, 8 new options
New tables
wp_taamul
New WordPress options
can_compress_scripts
theysaidso_admin_options
taamul_notification_setting
db_upgraded
widget_recent-posts
taamul_appearance_style
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Taamul - WordPress Feedback Modal Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,214 ▲1,46813.95 ▼0.3619.17 ▲16.8373.96 ▲31.35
Dashboard /wp-admin2,266 ▲784.85 ▼1.03100.04 ▼7.9139.47 ▼3.26
Posts /wp-admin/edit.php2,146 ▲602.07 ▲0.0439.19 ▲2.9234.66 ▼0.11
Add New Post /wp-admin/post-new.php1,565 ▲18423.25 ▲4.24692.09 ▲145.4056.55 ▲5.46
Media Library /wp-admin/upload.php1,443 ▲524.23 ▲0.03102.54 ▼1.6147.06 ▲4.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_taamul
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • taamul_notification_setting
    • taamul_appearance_style
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/taamul/public/partials/taamul-public-display.php
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/taamul/includes/taamul_list_table.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/taamul/admin/partials/taamul-support.php:5
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/taamul/admin/includes/taamul-list-table.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/taamul/includes/taamul_list_table.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/taamul/admin/partials/taamul-admin-display.php:15
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/taamul/admin/includes/taamul-list-table.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/taamul/public/partials/view_feedback.php:16
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/taamul/admin/includes/taamul-list-table.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/taamul/includes/taamul_list_table.php on line 3

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)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

taamul/taamul.php Passed 13 tests

"Taamul - WordPress Feedback Modal Plugin" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
65 characters long description:
The simplest way to collect user feedback, right on your website.

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
Everything looks great! No dangerous files found in this plugin7,412 lines of code in 75 files:
LanguageFilesBlank linesComment linesLines of code
CSS6170882,725
PHP253427102,042
SVG39011,815
JavaScript5322590830

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity16.09
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods69
▷ Static methods22.90%
▷ Public methods6492.75%
▷ Protected methods00.00%
▷ Private methods57.25%
Functions13
▷ Named functions1184.62%
▷ Anonymous functions215.38%
Constants2
▷ Global constants2100.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
11 PNG files occupy 0.37MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/taamul-logo.png100.74KB53.53KB▼ 46.87%
admin/img/dashboard/Nocountry.png35.19KB14.39KB▼ 59.09%
admin/img/dashboard/no-feedback.png43.51KB25.72KB▼ 40.88%
public/partials/img/05.png27.79KB12.13KB▼ 56.35%
admin/img/svg/Nocountry.png35.19KB14.39KB▼ 59.09%