Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.16MB] [CPU: ▼15.62ms] Passed 4 tests
Analyzing server-side resources used by WP Offline Fallback
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 35.51 ▼1.62 |
Dashboard /wp-admin | 3.22 ▼0.13 | 32.38 ▼24.46 |
Posts /wp-admin/edit.php | 3.28 ▼0.08 | 36.19 ▼7.46 |
Add New Post /wp-admin/post-new.php | 5.46 ▼0.43 | 72.30 ▼25.79 |
Media Library /wp-admin/upload.php | 3.22 ▼0.01 | 29.89 ▼4.76 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Offline Fallback
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,459 ▼1,327 | 12.27 ▼2.08 | 1.74 ▲0.02 | 37.49 ▼3.80 |
Dashboard /wp-admin | 850 ▼1,324 | 1.36 ▼4.29 | 12.94 ▼74.32 | 19.31 ▼19.76 |
Posts /wp-admin/edit.php | 861 ▼1,221 | 1.33 ▼0.70 | 7.41 ▼28.08 | 20.90 ▼16.50 |
Add New Post /wp-admin/post-new.php | 587 ▼950 | 1.71 ▼16.43 | 18.53 ▼595.58 | 7.95 ▼56.68 |
Media Library /wp-admin/upload.php | 746 ▼657 | 1.71 ▼2.52 | 19.30 ▼79.43 | 19.34 ▼22.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function the_title() in wp-content/plugins/wp-offline-fallback/page-templates/offline-fallback.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-offline-fallback/wp-offline-fallback.php:40
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: service worker, plugins, errors, offline
wp-offline-fallback/wp-offline-fallback.php Passed 13 tests
"WP Offline Fallback" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
112 characters long description:
Help you to show a message to the visitor when they visit your website without the internet. Yes, it's possible.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin156 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 17 | 25 | 115 |
JavaScript | 2 | 4 | 0 | 41 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin