84% plx-reporting

Code Review | PLX Lead Reporting

WordPress plugin PLX Lead Reporting scored84%from 54 tests.

About plugin

  • Plugin page: plx-reporting
  • Plugin version: 2.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 7.4+
  • WordPress version: 6.3.1
  • First release: Nov 22, 2017
  • Latest release: Feb 20, 2023
  • Number of updates: 17
  • Update frequency: every 112.7 days
  • Top authors: mattstone-plx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,669 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼3.51ms] Passed 4 tests

An overview of server-side resources used by PLX Lead Reporting
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0936.27 ▼0.15
Dashboard /wp-admin3.41 ▲0.1044.89 ▲0.34
Posts /wp-admin/edit.php3.52 ▲0.1746.98 ▼6.06
Add New Post /wp-admin/post-new.php6.01 ▲0.1289.68 ▼8.18
Media Library /wp-admin/upload.php3.33 ▲0.1035.59 ▲2.86

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for PLX Lead Reporting
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7613.23 ▼1.331.72 ▲0.0241.94 ▲1.21
Dashboard /wp-admin2,226 ▲384.83 ▼0.25112.24 ▲6.9642.44 ▲2.41
Posts /wp-admin/edit.php2,112 ▲232.06 ▲0.0539.92 ▲3.7434.57 ▼2.56
Add New Post /wp-admin/post-new.php1,531 ▼223.22 ▲0.15598.51 ▼76.1756.03 ▲3.65
Media Library /wp-admin/upload.php1,402 ▲234.25 ▼0.0197.13 ▼0.9541.74 ▼4.97

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

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

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
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/plx-reporting/views/reporting-json-builtInVariables.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/plx-reporting/views/php-json/json-builder.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/plx-reporting/views/tag-trigger-setup.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plx-reporting/includes/gtmhead.functions.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/plx-reporting/views/php-json/json-builder-variable.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/plx-reporting/views/tag-trigger-setup.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/plx-reporting/views/php-json/json-builder-tag_trigger.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plx-reporting/includes/settings.init.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/plx-reporting/views/reporting.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/plx-reporting/views/reporting-json.php:8

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 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:
  • Tested up to: Invalid plugin version format
You can take inspiration from this readme.txt

plx-reporting/plx-reporting.php 92% from 13 tests

This is the main PHP file of "PLX Lead Reporting" version 2.1, 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:
  • Description: Please keep the plugin description shorter than 140 characters (currently 173 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,261 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP253272441,761
JSON4001,404
Markdown130047
JavaScript38938
CSS11011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.67
▷ Minimum class complexity4.00
▷ Maximum class complexity18.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods13
▷ Static methods538.46%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions33
▷ Named functions3193.94%
▷ Anonymous functions26.06%
Constants9
▷ Global constants555.56%
▷ Class constants444.44%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected