94% customizer-browser-history

Code Review | Customizer Browser History

WordPress plugin Customizer Browser History scored 94% from 54 tests.

About plugin

  • Plugin page: customizer-browse...
  • Plugin version: 0.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 5.8.1
  • First release: Jul 15, 2016
  • Latest release: Nov 9, 2017
  • Number of updates: 36
  • Update frequency: every 13.4 days
  • Top authors: westonruter (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 2,419 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼141.19ms] Passed 4 tests

Server-side resources used by Customizer Browser History
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.19 ▲13.86
Dashboard /wp-admin3.07 ▲0.0144.84 ▲2.79
Posts /wp-admin/edit.php3.12 ▲0.0139.73 ▼7.74
Add New Post /wp-admin/post-new.php5.43 ▼0.0186.58 ▼566.47
Media Library /wp-admin/upload.php3.01 ▲0.0133.23 ▲6.65

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Customizer Browser History
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,815 ▲21916.62 ▲0.6914.99 ▲3.7946.61 ▼3.14
Dashboard /wp-admin2,973 ▲395.85 ▼0.11133.32 ▼16.15105.33 ▼8.90
Posts /wp-admin/edit.php2,736 ▼32.68 ▼0.0162.88 ▲0.8990.11 ▼3.39
Add New Post /wp-admin/post-new.php1,672 ▲17418.94 ▲0.09354.12 ▼11.83113.30 ▲2.76
Media Library /wp-admin/upload.php1,810 ▲65.01 ▲0.00149.33 ▼3.25113.14 ▼9.88

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customizer-browser-history/customizer-browser-history.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: customize, customizer

customizer-browser-history/customizer-browser-history.php 85% from 13 tests

"Customizer Browser History" version 0.5.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 428 characters long)
  • Domain Path: The domain path folder was not found ("/languages")

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
Success! There were no dangerous files found in this plugin322 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ 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