89% foodle-for-democracy-poll

Code Review | Foodle Add-On for Democracy Poll

WordPress plugin Foodle Add-On for Democracy Poll scored89%from 54 tests.

About plugin

  • Plugin page: foodle-for-democr...
  • Plugin version: 2.3.2.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.4
  • WordPress version: 6.3.1
  • First release: Apr 14, 2021
  • Latest release: Dec 3, 2023
  • Number of updates: 421
  • Update frequency: every 2.3 days
  • Top authors: mitfi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,361 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

This is a short check of server-side resources used by Foodle Add-On for Democracy Poll
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.20 ▼1.62
Dashboard /wp-admin3.31 ▲0.0046.22 ▼4.66
Posts /wp-admin/edit.php3.36 ▲0.0052.08 ▼0.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.71 ▼9.28
Media Library /wp-admin/upload.php3.24 ▲0.0035.97 ▲0.59

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
foodle_foodle_post_usage
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
foodle_democracy_post_usage

Browser metrics Passed 4 tests

This is an overview of browser requirements for Foodle Add-On for Democracy Poll
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲314.70 ▲0.321.73 ▼0.1544.34 ▲0.07
Dashboard /wp-admin2,198 ▲215.60 ▲0.0786.08 ▼15.4938.78 ▼4.80
Posts /wp-admin/edit.php2,103 ▲61.94 ▼0.0737.78 ▲0.1935.05 ▼1.46
Add New Post /wp-admin/post-new.php1,526 ▼023.33 ▼0.06635.67 ▲18.2548.90 ▼12.20
Media Library /wp-admin/upload.php1,400 ▲64.22 ▲0.0295.14 ▼2.1542.92 ▲2.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

foodle-for-democracy-poll/foodle-for-democracy-poll.php 92% from 13 tests

This is the main PHP file of "Foodle Add-On for Democracy Poll" version 2.3.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 170 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin8,027 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP96892794,783
PO File15291,0522,357
CSS37442517
JavaScript589104318
SVG10052

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions74
▷ Named functions6993.24%
▷ Anonymous functions56.76%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
12 PNG files occupy 0.36MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/link.png2.72KB1.57KB▼ 42.20%
img/draggable.png6.35KB0.66KB▼ 89.62%
img/refresh.png1.58KB1.31KB▼ 17.07%
img/foodle.png7.18KB3.44KB▼ 52.05%
img/same_wlan_ok.png1.33KB0.87KB▼ 34.92%