72% wp-author-report-free

Code Review | WP Author Report Free

WordPress plugin WP Author Report Free scored72%from 54 tests.

About plugin

  • Plugin page: wp-author-report-...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.8
  • WordPress version: 6.3.1
  • First release: Feb 11, 2014
  • Latest release: Jun 10, 2017
  • Number of updates: 27
  • Update frequency: every 45.0 days
  • Top authors: Asif2BD (88.89%)onetarek (14.81%)

Code review

54 tests

User reviews

6 reviews

Install metrics

60+ active /3,451 total downloads

Benchmarks

Plugin footprint 83% 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.73ms] Passed 4 tests

Analyzing server-side resources used by WP Author Report Free
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1045.09 ▲4.98
Dashboard /wp-admin4.35 ▲1.0554.96 ▼1.69
Posts /wp-admin/edit.php3.52 ▲0.1750.03 ▼3.20
Add New Post /wp-admin/post-new.php5.99 ▲0.10109.53 ▲0.12
Media Library /wp-admin/upload.php3.33 ▲0.1038.11 ▲1.85
Author Report /wp-admin/admin.php?page=wp-author-report-free/wp-author-report.php3.2839.27
Upgrade /wp-admin/admin.php?page=wp-author-report-free/wp-author-report-upgrade.php4.1940.33
Report options /wp-admin/admin.php?page=wp-author-report-free/wp-author-report-options.php4.2037.72

Server storage [IO: ▲0.17MB] [DB: ▲0.19MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
holyday
db_upgraded
can_compress_scripts
included_stat_user
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Author Report Free
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲15414.65 ▲0.502.21 ▲0.5149.20 ▲3.18
Dashboard /wp-admin2,321 ▲1405.76 ▲0.0586.46 ▼24.8383.40 ▲37.74
Posts /wp-admin/edit.php2,150 ▲502.00 ▲0.0135.42 ▼8.0335.21 ▼4.92
Add New Post /wp-admin/post-new.php1,586 ▲6023.01 ▼0.52664.45 ▲15.96122.42 ▲70.28
Media Library /wp-admin/upload.php1,444 ▲444.09 ▼0.0098.93 ▼9.0768.28 ▲24.92
Author Report /wp-admin/admin.php?page=wp-author-report-free/wp-author-report.php1,4602.1732.6643.76
Upgrade /wp-admin/admin.php?page=wp-author-report-free/wp-author-report-upgrade.php1,0541.9426.1039.30
Report options /wp-admin/admin.php?page=wp-author-report-free/wp-author-report-options.php1,1402.0027.8331.90

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 8 options in the database
    • holyday
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • included_stat_user

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=wp-author-report-free/wp-author-report.php
    • > Notice in wp-content/plugins/wp-author-report-free/wp-author-report.php+507
    Undefined variable: numberofDay
    • > GET request to /wp-admin/admin.php?page=wp-author-report-free/wp-author-report.php
    • > Notice in wp-content/plugins/wp-author-report-free/wp-author-report.php+509
    Undefined variable: numberofMonthDay
    • > GET request to /wp-admin/admin.php?page=wp-author-report-free/wp-author-report.php
    • > Notice in wp-content/plugins/wp-author-report-free/wp-author-report.php+513
    Undefined variable: runningMonth
    • > GET request to /wp-admin/admin.php?page=wp-author-report-free/wp-author-report.php
    • > Notice in wp-content/plugins/wp-author-report-free/wp-author-report.php+554
    Undefined variable: daytotal
    • > GET request to /wp-admin/admin.php?page=wp-author-report-free/wp-author-report.php
    • > Notice in wp-content/plugins/wp-author-report-free/wp-author-report.php+556
    Undefined variable: userMonthlyCountList
    • > GET request to /wp-admin/admin.php?page=wp-author-report-free/wp-author-report.php
    • > Notice in wp-content/plugins/wp-author-report-free/wp-author-report.php+556
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/admin.php?page=wp-author-report-free/wp-author-report.php
    • > Notice in wp-content/plugins/wp-author-report-free/wp-author-report.php+558
    Undefined offset: 1
    • > GET request to /wp-admin/admin.php?page=wp-author-report-free/wp-author-report.php
    • > Notice in wp-content/plugins/wp-author-report-free/wp-author-report.php+568
    Undefined variable: monthTotal
    • > GET request to /wp-admin/admin.php?page=wp-author-report-free/wp-author-report.php
    • > Notice in wp-content/plugins/wp-author-report-free/wp-author-report.php+569
    Undefined variable: _monthTotal
    • > GET request to /wp-admin/admin.php?page=wp-author-report-free/wp-author-report.php
    • > Notice in wp-content/plugins/wp-author-report-free/wp-author-report.php+571
    Undefined variable: grandTotal
    • > GET request to /wp-admin/admin.php?page=wp-author-report-free/wp-author-report.php
    • > Notice in wp-content/plugins/wp-author-report-free/wp-author-report.php+572
    Undefined variable: _grandTotal

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
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function author_report_header() in wp-content/plugins/wp-author-report-free/wp-author-report-options.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-author-report-free/wp-author-report.php:18
    • > PHP Warning
      include_once(ABSPATHWPINC/feed.php): failed to open stream: No such file or directory in wp-content/plugins/wp-author-report-free/wpdev-dashboard-widget.php on line 5
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/feed.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-author-report-free/wpdev-dashboard-widget.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-author-report-free/wp-author-report-upgrade.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-author-report-free/wpdev-dashboard-widget.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wpdev_dashboard_widget_function() in wp-content/plugins/wp-author-report-free/wp-author-report-sidebar.php:59
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-author-report-free/wpdev-dashboard-widget.php on line 5
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-author-report-free/wpdev-dashboard-widget.php on line 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 user-side errors
    • > GET request to /wp-admin/admin.php?page=wp-author-report-free/wp-author-report.php
    • > Network (severe)
    chrome-error://chromewebdata/ - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/admin.php?page=wp-author-report-free/wp-author-report.php
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://wpdeveloper.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

wp-author-report-free/wp-author-report.php 92% from 13 tests

Analyzing the main PHP file in "WP Author Report Free" version 1.0.7
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 ("wp-author-report-free.php" instead of "wp-author-report.php")

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
Good job! No executable or dangerous file extensions detected752 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP559150746
JavaScript10226

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in 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%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/header-banner-free-with-price.png95.54KB30.01KB▼ 68.59%
css/images/title-banner-free.png10.46KB4.73KB▼ 54.77%
css/images/white-grad.png0.21KB0.18KB▼ 12.38%