79% author-periodic-report

Code Review | Author Periodic Report

WordPress plugin Author Periodic Report scored79%from 54 tests.

About plugin

  • Plugin page: author-periodic-r...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6.1
  • WordPress version: 6.3.1
  • First release: Sep 18, 2013
  • Latest release: Sep 19, 2013
  • Number of updates: 3
  • Update frequency: every 3.0 days
  • Top authors: shlomi.tur (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,101 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Analyzing server-side resources used by Author Periodic Report
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.13 ▼3.68
Dashboard /wp-admin3.32 ▲0.0247.89 ▼5.10
Posts /wp-admin/edit.php3.38 ▲0.0245.99 ▼6.33
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.87 ▼17.65
Media Library /wp-admin/upload.php3.25 ▲0.0235.03 ▼1.83
Periodic Report /wp-admin/users.php?page=author-periodic-report3.1933.56

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Author Periodic Report
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.25 ▼0.121.71 ▲0.0641.40 ▼3.05
Dashboard /wp-admin2,199 ▲255.60 ▲0.0087.52 ▼9.2440.50 ▼3.67
Posts /wp-admin/edit.php2,101 ▲12.01 ▼0.0234.90 ▼12.2134.21 ▼6.53
Add New Post /wp-admin/post-new.php1,538 ▲1018.46 ▼4.73630.73 ▼43.0053.24 ▼5.42
Media Library /wp-admin/upload.php1,401 ▲14.11 ▼0.04100.82 ▼11.6544.97 ▼2.54
Periodic Report /wp-admin/users.php?page=author-periodic-report9291.9924.8627.23

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/users.php?page=author-periodic-report
    • > Notice in wp-content/plugins/author-periodic-report/php/report.php+5
    Undefined index: month
    • > GET request to /wp-admin/users.php?page=author-periodic-report
    • > Warning in wp-content/plugins/author-periodic-report/php/report.php+6
    Use of undefined constant n - assumed 'n' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/users.php?page=author-periodic-report
    • > Notice in wp-content/plugins/author-periodic-report/php/report.php+9
    Undefined index: year
    • > GET request to /wp-admin/users.php?page=author-periodic-report
    • > Warning in wp-content/plugins/author-periodic-report/php/report.php+10
    Use of undefined constant Y - assumed 'Y' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/users.php?page=author-periodic-report
    • > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
    Undefined offset: 1
    • > GET request to /wp-admin/users.php?page=author-periodic-report
    • > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
    Undefined offset: 2
    • > GET request to /wp-admin/users.php?page=author-periodic-report
    • > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
    Undefined offset: 3
    • > GET request to /wp-admin/users.php?page=author-periodic-report
    • > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
    Undefined offset: 4
    • > GET request to /wp-admin/users.php?page=author-periodic-report
    • > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
    Undefined offset: 5
    • > GET request to /wp-admin/users.php?page=author-periodic-report
    • > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
    Undefined offset: 6
    • > GET request to /wp-admin/users.php?page=author-periodic-report
    • > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
    Undefined offset: 7
    • > GET request to /wp-admin/users.php?page=author-periodic-report
    • > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
    Undefined offset: 8
    • > GET request to /wp-admin/users.php?page=author-periodic-report
    • > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
    Undefined offset: 9
    • > GET request to /wp-admin/users.php?page=author-periodic-report
    • > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
    Undefined offset: 11
    • > GET request to /wp-admin/users.php?page=author-periodic-report
    • > Notice in wp-content/plugins/author-periodic-report/php/report.php+27
    Undefined offset: 12

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: month in wp-content/plugins/author-periodic-report/php/display_report.php on line 2
    • > PHP Notice
      Undefined variable: month in wp-content/plugins/author-periodic-report/php/display_report.php on line 3
    • > PHP Notice
      Undefined variable: year in wp-content/plugins/author-periodic-report/php/display_report.php on line 3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/author-periodic-report/php/display_report.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/author-periodic-report/author-periodic-report.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: report, statistics, author

author-periodic-report/author-periodic-report.php Passed 13 tests

"Author Periodic Report" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
87 characters long description:
This plugin reports to the admin on posts amount of author in specified period of time.

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
There were no executable files found in this plugin115 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3328115

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.67
▷ Minimum method complexity2.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin