68% wp-client-reports

Code Review | WP Client Reports

WordPress plugin WP Client Reports scored68%from 54 tests.

About plugin

  • Plugin page: wp-client-reports
  • Plugin version: 1.0.21
  • PHP compatiblity: 5.6.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 22, 2020
  • Latest release: Nov 29, 2023
  • Number of updates: 21
  • Update frequency: every 67.0 days
  • Top authors: TheJester12 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

4,000+ active /30,997 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.23MB] [CPU: ▼3.78ms] Passed 4 tests

This is a short check of server-side resources used by WP Client Reports
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2236.50 ▼4.58
Dashboard /wp-admin3.54 ▲0.2445.50 ▼2.08
Posts /wp-admin/edit.php3.66 ▲0.3048.09 ▼3.13
Add New Post /wp-admin/post-new.php6.12 ▲0.2486.79 ▼5.33
Media Library /wp-admin/upload.php3.47 ▲0.2438.33 ▲1.14
Reports /wp-admin/index.php?page=wp_client_reports3.4433.67
WP Client Reports /wp-admin/options-general.php?page=wp_client_reports3.4435.34

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: 1 new table, 9 new options
New tables
wp_update_tracking
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
wp_client_reports_enable_content_stats
wp_client_reports_enable_updates
wp_client_reports_version
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Client Reports
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,873 ▲11114.63 ▼0.081.63 ▼0.1331.30 ▼12.37
Dashboard /wp-admin2,281 ▲1005.63 ▼0.0492.49 ▼18.7642.42 ▼1.45
Posts /wp-admin/edit.php2,107 ▲41.97 ▼0.0438.63 ▼2.7534.57 ▼12.43
Add New Post /wp-admin/post-new.php1,534 ▲823.21 ▲0.27694.19 ▲79.8551.92 ▼0.05
Media Library /wp-admin/upload.php1,413 ▲104.18 ▼0.0296.31 ▼3.6140.13 ▼1.28
Reports /wp-admin/index.php?page=wp_client_reports1,5162.2353.1543.01
WP Client Reports /wp-admin/options-general.php?page=wp_client_reports1,1052.2335.1626.60

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
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_update_tracking
  • Zombie WordPress options detected upon uninstall: 9 options
    • wp_client_reports_enable_content_stats
    • widget_recent-posts
    • widget_recent-comments
    • wp_client_reports_enable_updates
    • can_compress_scripts
    • wp_client_reports_version
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-client-reports/email/report-email-header.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/wp-client-reports/email/report-email-footer.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: You can take inspiration from this readme.txt

wp-client-reports/wp_client_reports.php 92% from 13 tests

"WP Client Reports" version 1.0.21's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-client-reports.php" instead of "wp_client_reports.php")

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
Everything looks great! No dangerous files found in this plugin6,653 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript27833474,874
PHP32961911,274
CSS11412505

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions50
▷ Named functions50100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin