10% user-page-logs

Code Review | User Page Logs

WordPress plugin User Page Logs scored10%from 54 tests.

About plugin

  • Plugin page: user-page-logs
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-5.4.2
  • WordPress version: 6.3.1
  • First release: May 9, 2019
  • Latest release: Jun 19, 2020
  • Number of updates: 7
  • Update frequency: every 58.6 days
  • Top authors: sandree14 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /594 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/user-page-logs/user_page_logs_setting.php+7
    Methods with the same name as their class will not be constructors in a future version of PHP; user_page_logs_setting has a deprecated constructor

Server metrics [RAM: ▼1.77MB] [CPU: ▼56.04ms] Passed 4 tests

Analyzing server-side resources used by User Page Logs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.23 ▼1.244.33 ▼36.37
Dashboard /wp-admin2.25 ▼1.106.39 ▼54.07
Posts /wp-admin/edit.php2.25 ▼1.116.07 ▼40.21
Add New Post /wp-admin/post-new.php2.25 ▼3.645.84 ▼93.51
Media Library /wp-admin/upload.php2.25 ▼0.986.87 ▼27.93

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: 1 new table, 7 new options
New tables
wp_user_page_logs
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
tb_user_page_log_version
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for User Page Logs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9513.18 ▼1.401.67 ▼0.0936.96 ▼4.29
Dashboard /wp-admin2,225 ▲405.87 ▼0.19113.94 ▲9.3444.91 ▲0.29
Posts /wp-admin/edit.php2,105 ▲162.05 ▲0.0334.81 ▼0.9931.19 ▼3.08
Add New Post /wp-admin/post-new.php1,548 ▲2523.19 ▼0.06652.83 ▼23.4154.38 ▼22.38
Media Library /wp-admin/upload.php1,407 ▲194.19 ▼0.0396.46 ▼10.9640.70 ▼8.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/user-page-logs/user_page_logs_setting.php+7
    Methods with the same name as their class will not be constructors in a future version of PHP; user_page_logs_setting has a deprecated constructor
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_user_page_logs
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • tb_user_page_log_version
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/user-page-logs/user_page_logs.php:175
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-page-logs/user_page_logs_setting.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Contributors: Contributors not specified
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in user-page-logs/assets to your readme.txt
The official readme.txt is a good inspiration

user-page-logs/user_page_logs.php 92% from 13 tests

The primary PHP file in "User Page Logs" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("user-page-logs.php" instead of "user_page_logs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin857 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP222625628
CSS104229

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity2.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin