90% browsing-history

Code Review | Browsing History

WordPress plugin Browsing History scored90%from 54 tests.

About plugin

  • Plugin page: browsing-history
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.0
  • WordPress version: 6.3.1
  • First release: Jan 21, 2021
  • Latest release: Jun 12, 2022
  • Number of updates: 10
  • Update frequency: every 50.8 days
  • Top authors: takashimatsuyama (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,137 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.68ms] Passed 4 tests

An overview of server-side resources used by Browsing History
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.85 ▲2.29
Dashboard /wp-admin3.36 ▲0.0546.95 ▼3.62
Posts /wp-admin/edit.php3.47 ▲0.1146.63 ▼3.24
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.83 ▼2.04
Media Library /wp-admin/upload.php3.28 ▲0.0535.73 ▼1.83

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Browsing History: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲17113.69 ▼0.618.95 ▲7.2246.67 ▲0.81
Dashboard /wp-admin2,206 ▲185.83 ▲0.9792.66 ▼28.9237.67 ▼9.05
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0139.23 ▲2.7234.65 ▼2.37
Add New Post /wp-admin/post-new.php1,533 ▲1423.29 ▼0.04663.86 ▼6.4857.27 ▼9.33
Media Library /wp-admin/upload.php1,388 ▼04.35 ▲0.1095.25 ▼10.9840.92 ▼5.63

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
Please take inspiration from this readme.txt

browsing-history/browsing-history.php Passed 13 tests

"Browsing History" version 1.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
45 characters long description:
Save user’s browsing history and list them.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin514 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP64236285
JavaScript2173497
CSS15762
Markdown121041
PO File13529

PHP code Passed 2 tests

This is a very shot review of 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.32
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods12
▷ Static methods433.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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