84% pendo

Code Review | Pendhope

WordPress plugin Pendhope scored84%from 54 tests.

About plugin

  • Plugin page: pendo
  • Plugin version: 0.2.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8.1
  • WordPress version: 6.3.1
  • First release: Jan 1, 2022
  • Latest release: Sep 28, 2023
  • Number of updates: 21
  • Update frequency: every 30.3 days
  • Top authors: holyhope (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /799 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.34ms] Passed 4 tests

A check of server-side resources used by Pendhope
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.92 ▲2.53
Dashboard /wp-admin3.33 ▲0.0252.45 ▼0.51
Posts /wp-admin/edit.php3.38 ▲0.0249.33 ▲0.34
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.15 ▼16.81
Media Library /wp-admin/upload.php3.25 ▲0.0236.40 ▼4.38
Pendhope /wp-admin/options-general.php?page=pendhope3.2234.06

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Pendhope
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.74 ▲0.161.80 ▼0.3843.63 ▲2.38
Dashboard /wp-admin2,225 ▲224.84 ▼1.04114.05 ▲8.5943.44 ▲2.14
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0636.29 ▼0.1934.60 ▼0.76
Add New Post /wp-admin/post-new.php1,552 ▲2123.26 ▼0.07672.70 ▲1.6556.14 ▲1.76
Media Library /wp-admin/upload.php1,404 ▲14.20 ▲0.0795.26 ▼14.0344.78 ▼0.97
Pendhope /wp-admin/options-general.php?page=pendhope9272.0224.0028.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pendo/settings.php:113
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pendo/settings.php:113

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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: tracking, pendoio, analyze, statistics

pendo/pendhope.php 92% from 13 tests

This is the main PHP file of "Pendhope" version 0.2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("pendo.php" instead of "pendhope.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected363 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP297124360
Markdown1203

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin