10% pd-helper

Code Review | Podio Helper Plugin

WordPress plugin Podio Helper Plugin scored10%from 54 tests.

About plugin

  • Plugin page: pd-helper
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Jan 8, 2017
  • Latest release: Jan 26, 2017
  • Number of updates: 4
  • Update frequency: every 3.5 days
  • Top authors: carl-alberto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /828 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/pd-helper/includes/class-pd-helper.php+280
    Use of undefined constant on - assumed 'on' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▲1.26MB] [CPU: ▲3.59ms] Passed 4 tests

An overview of server-side resources used by Podio Helper Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.72 ▲1.2649.94 ▲6.56
Dashboard /wp-admin4.57 ▲1.2651.31 ▲0.75
Posts /wp-admin/edit.php4.62 ▲1.2654.95 ▲8.26
Add New Post /wp-admin/post-new.php7.17 ▲1.28102.78 ▼1.23
Media Library /wp-admin/upload.php4.49 ▲1.2647.49 ▲11.57
Podio Helper Settings /wp-admin/options-general.php?page=pd_helper_settings4.4939.69

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 110 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
pd_helper_version
pdhs1_cb_libs
pdhs1_cb_mods
widget_theysaidso_widget
can_compress_scripts
pdhs1_cb_reset
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Podio Helper Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14513.66 ▼0.607.19 ▲5.4745.26 ▲2.97
Dashboard /wp-admin2,214 ▲265.80 ▲0.9199.57 ▼16.8439.33 ▼7.59
Posts /wp-admin/edit.php2,094 ▲21.99 ▼0.0235.47 ▼0.4631.81 ▼4.63
Add New Post /wp-admin/post-new.php1,521 ▼823.30 ▲0.09664.16 ▼28.2467.40 ▲15.37
Media Library /wp-admin/upload.php1,399 ▲114.20 ▲0.07101.98 ▼7.5543.88 ▲1.57
Podio Helper Settings /wp-admin/options-general.php?page=pd_helper_settings1,0133.0849.5825.82

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 10 options in the database
    • pdhs1_cb_mods
    • db_upgraded
    • pdhs1_cb_reset
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • pd_helper_version
    • pdhs1_cb_libs
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 74× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PodioObject' not found in wp-content/plugins/pd-helper/includes/podio/models/PodioFlow.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PodioCollection' not found in wp-content/plugins/pd-helper/includes/podio/models/PodioItemCollection.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'PodioObject' not found in wp-content/plugins/pd-helper/includes/podio/models/PodioConversation.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PodioObject' not found in wp-content/plugins/pd-helper/includes/podio/models/PodioUserStatus.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PodioObject' not found in wp-content/plugins/pd-helper/includes/podio/models/PodioReminder.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PodioObject' not found in wp-content/plugins/pd-helper/includes/podio/models/PodioConversationMessage.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PodioObject' not found in wp-content/plugins/pd-helper/includes/podio/models/PodioRecurrence.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/pd-helper/includes/podio/lib/vendor/kint/parsers/custom/classstatics.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'PodioObject' not found in wp-content/plugins/pd-helper/includes/podio/models/PodioNotificationContext.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PodioObject' not found in wp-content/plugins/pd-helper/includes/podio/models/PodioReference.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=pd_helper_settings
    • > Network (severe)
    wp-content/plugins/pd-helper/assets/css/admin.css?ver=1.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=pd_helper_settings
    • > Network (severe)
    wp-content/plugins/pd-helper/assets/js/admin.min.js?ver=1.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=pd_helper_settings
    • > Network (severe)
    wp-content/plugins/pd-helper/assets/js/settings.min.js?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: admin, dashboard, template, plugin, wordpress...

pd-helper/pd-helper.php 85% from 13 tests

The main PHP file in "Podio Helper Plugin" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("3.9" instead of "4.0")
  • Description: Please don't use more than 140 characters for the plugin description (currently 181 characters long)

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please fix the following items
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .reg - Registry Data File in Windows
      • wp-content/plugins/pd-helper/includes/podio/lib/vendor/kint/scripts/source.reg
    • .vbs - VBScript File in Windows
      • wp-content/plugins/pd-helper/includes/podio/lib/vendor/kint/scripts/source.vbs
6,458 lines of code in 103 files:
LanguageFilesBlank linesComment linesLines of code
PHP911,3632,3945,730
LESS48922342
JavaScript25813281
Visual Basic1142442
Markdown126036
JSON10024
CSS3003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity8.92
▷ Minimum class complexity1.00
▷ Maximum class complexity103.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes117
▷ Abstract classes21.71%
▷ Concrete classes11598.29%
▷ Final classes00.00%
Methods588
▷ Static methods34658.84%
▷ Public methods53791.33%
▷ Protected methods254.25%
▷ Private methods264.42%
Functions14
▷ Named functions750.00%
▷ Anonymous functions750.00%
Constants8
▷ Global constants225.00%
▷ Class constants675.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin