73% pp-freedom

Code Review | PP Freedom - Create Widgets & Show Them In Current or Another WordPress or Non-WordPress Sites

WordPress plugin PP Freedom - Create Widgets & Show Them In Current or Another WordPress or Non-WordPress Sites scored73%from 54 tests.

About plugin

  • Plugin page: pp-freedom
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Sep 16, 2021
  • Latest release: Oct 11, 2023
  • Number of updates: 26
  • Update frequency: every 29.0 days
  • Top authors: parshuram369 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /516 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▲0.36ms] Passed 4 tests

Server-side resources used by PP Freedom - Create Widgets & Show Them In Current or Another WordPress or Non-WordPress Sites
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1141.58 ▼3.38
Dashboard /wp-admin3.41 ▲0.1158.82 ▲6.58
Posts /wp-admin/edit.php3.53 ▲0.1751.95 ▲0.94
Add New Post /wp-admin/post-new.php6.01 ▲0.13101.29 ▼1.84
Media Library /wp-admin/upload.php3.34 ▲0.1141.09 ▲5.73

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 19 new files
Database: 2 new tables, 6 new options
New tables
wp_ppfrdm_publish
wp_ppfrdm_pull
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for PP Freedom - Create Widgets & Show Them In Current or Another WordPress or Non-WordPress Sites
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.34 ▼0.231.74 ▼0.1643.65 ▲0.08
Dashboard /wp-admin2,233 ▲565.80 ▲0.2094.13 ▼2.2841.85 ▲1.30
Posts /wp-admin/edit.php2,119 ▲162.32 ▲0.3336.90 ▼4.0533.45 ▲0.26
Add New Post /wp-admin/post-new.php1,561 ▲3523.14 ▼0.11580.88 ▼84.0134.01 ▼16.11
Media Library /wp-admin/upload.php1,436 ▲364.39 ▲0.2097.50 ▼14.1540.84 ▼6.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie tables were found after uninstall: 2 tables
    • wp_ppfrdm_publish
    • wp_ppfrdm_pull
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 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)
Good news, no errors were detected

SRP 50% 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
The following issues need your attention
  • 68× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pp-freedom/views/public/ppfrdm-view-theme1.php on line 16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pp-freedom/views/public/ppfrdm-view-theme1.php on line 18
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pp-freedom/views/public/ppfrdm-view-theme2.php on line 16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pp-freedom/views/public/ppfrdm-view-theme2.php on line 27
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pp-freedom/views/public/ppfrdm-view-theme2.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pp-freedom/views/public/ppfrdm-view-theme1.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pp-freedom/views/public/ppfrdm-view-theme1.php on line 27
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pp-freedom/views/public/ppfrdm-view-theme2.php on line 4
    • > PHP Notice
      Undefined variable: GLOBAlS in wp-content/plugins/pp-freedom/views/public/ppfrdm-view-theme1.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pp-freedom/views/public/ppfrdm-view-theme1.php on line 4

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

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt might help

pp-freedom/ppfrdm.php 77% from 13 tests

Analyzing the main PHP file in "PP Freedom - Create Widgets & Show Them In Current or Another WordPress or Non-WordPress Sites" version 2.4
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("pp-freedom.php" instead of "ppfrdm.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 287 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
There were no executable files found in this plugin2,432 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP14110542,123
PO File183156201
JavaScript13391
CSS10017

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions35
▷ Named functions3497.14%
▷ Anonymous functions12.86%
Constants4
▷ Global constants4100.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
There are no PNG files in this plugin