74% pagelog

Code Review | Pagelog

WordPress plugin Pagelog scored74%from 54 tests.

About plugin

  • Plugin page: pagelog
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-6.1
  • WordPress version: 6.3.1
  • First release: Jul 6, 2016
  • Latest release: Oct 30, 2022
  • Number of updates: 39
  • Update frequency: every 59.2 days
  • Top authors: opajaap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,799 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼3.86ms] Passed 4 tests

Analyzing server-side resources used by Pagelog
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1638.57 ▼1.51
Dashboard /wp-admin3.47 ▲0.1751.70 ▼1.87
Posts /wp-admin/edit.php3.52 ▲0.1755.12 ▼0.42
Add New Post /wp-admin/post-new.php6.05 ▲0.1797.01 ▼11.64
Media Library /wp-admin/upload.php3.39 ▲0.1740.28 ▲3.46
Page Log /wp-admin/tools.php?page=pagelog3.3640.83

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: 1 new table, 7 new options
New tables
wp_pagelog
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
pagelog_last_tab
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Pagelog: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.001.73 ▲0.0742.53 ▲5.01
Dashboard /wp-admin2,196 ▲195.60 ▼0.0692.09 ▼6.3837.79 ▼6.33
Posts /wp-admin/edit.php2,107 ▲42.03 ▲0.0738.70 ▼5.2835.14 ▼1.72
Add New Post /wp-admin/post-new.php1,531 ▲323.28 ▲0.08611.73 ▼11.3254.71 ▼3.22
Media Library /wp-admin/upload.php1,401 ▲14.15 ▼0.1598.70 ▲0.2942.53 ▼1.57
Page Log /wp-admin/tools.php?page=pagelog1,0092.1728.5031.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_pagelog
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • pagelog_last_tab
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/pagelog/pagelog.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/pagelog/pagelog.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: admin tool, logging, page

pagelog/pagelog.php Passed 13 tests

The main file in "Pagelog" v. 1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
23 characters long description:
Registers all pageloads

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,183 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1133661,095
PO File1323388

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin