63% wp-offline-browser

Code Review | WP Offline Browser

WordPress plugin WP Offline Browser scored 63% from 54 tests.

About plugin

  • Plugin page: wp-offline-browser
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.8
  • WordPress version: 6.3.1
  • First release: Jan 4, 2014
  • Latest release: Jan 5, 2014
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: Anop Goswami (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 2,716 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.92MB] [CPU: ▼50.54ms] Passed 4 tests

Server-side resources used by WP Offline Browser
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.405.39 ▼33.43
Dashboard /wp-admin2.08 ▼1.225.45 ▼44.71
Posts /wp-admin/edit.php2.08 ▼1.275.83 ▼40.57
Add New Post /wp-admin/post-new.php2.08 ▼3.806.04 ▼83.46
Media Library /wp-admin/upload.php2.08 ▼1.154.88 ▼28.74
WP Offline Browser /wp-admin/options-general.php?page=wpofflinebrowser2.085.75

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Offline Browser
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲10013.56 ▼0.722.26 ▲0.5138.28 ▼3.81
Dashboard /wp-admin2,215 ▲294.86 ▼0.0896.33 ▼16.1442.54 ▲3.95
Posts /wp-admin/edit.php2,095 ▲62.14 ▲0.1239.28 ▲3.3333.77 ▼1.67
Add New Post /wp-admin/post-new.php1,542 ▲2818.52 ▲0.98655.78 ▼64.0650.18 ▼3.08
Media Library /wp-admin/upload.php1,394 ▲34.29 ▲0.07110.22 ▲6.3451.72 ▲7.48
WP Offline Browser /wp-admin/options-general.php?page=wpofflinebrowser7652.0723.8723.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the updater handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=wpofflinebrowser
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the updater handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-offline-browser/wp-offline-browser.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=wpofflinebrowser
    • > Javascript (severe) in unknown
    /wp-content/plugins/wp-offline-browser/includes/updater.js?ver=6.3.1 9:6 Uncaught TypeError: Cannot read properties of undefined (reading 'addEventListener')

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: wp-cache, wp-offline-browser, cache-plugin, cache-manifest

wp-offline-browser/wp-offline-browser.php Passed 13 tests

The entry point to "WP Offline Browser" version 1.0 is a PHP file that has certain tags in its header comment area
123 characters long description:
This is one of the best plugin which creates offline cache and increases loading time and speed of your wordpress website.

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 plugin158 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP26418119
JavaScript14038
HTML1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions10
▷ Named functions10100.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