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.19MB] [CPU: ▼9.03ms] Passed 4 tests
Server-side resources used by Offline Content
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 38.93 ▼3.52 |
Dashboard /wp-admin | 3.54 ▲0.19 | 48.15 ▼15.02 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 51.70 ▲5.37 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 85.58 ▼22.43 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 37.76 ▲4.84 |
Offline Content /wp-admin/options-general.php?page=offline-options | 3.36 | 33.95 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 11 new options
New WordPress options |
---|
offline_precache |
can_compress_scripts |
offline_cache_name |
widget_recent-posts |
wpswmanager_registrations |
theysaidso_admin_options |
db_upgraded |
offline_debug_sw |
offline_network_timeout |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Offline Content
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.33 ▼0.97 | 1.83 ▲0.02 | 39.05 ▼3.88 |
Dashboard /wp-admin | 2,207 ▲19 | 5.79 ▲0.91 | 97.29 ▼5.46 | 39.57 ▼1.11 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.09 | 38.12 ▼2.26 | 34.00 ▼3.23 |
Add New Post /wp-admin/post-new.php | 1,517 ▼11 | 17.65 ▼0.64 | 679.61 ▲76.60 | 60.05 ▲10.86 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.22 ▲0.02 | 94.85 ▼7.01 | 41.93 ▼0.89 |
Offline Content /wp-admin/options-general.php?page=offline-options | 829 | 2.04 | 22.97 | 27.79 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- wpswmanager_registrations
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/offline-content/class-wp-offline-content-admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/offline-content/class-wp-offline-content-plugin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/offline-content/lib/pages/admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/offline-content/wp-offline-content.php:13
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: serivce, workers, precache, offline, read later...
offline-content/wp-offline-content.php 92% from 13 tests
"Offline Content" version 0.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("offline-content.php" instead of "wp-offline-content.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,352 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 197 | 249 | 877 |
JavaScript | 5 | 48 | 7 | 261 |
JSON | 3 | 0 | 0 | 114 |
Markdown | 2 | 42 | 0 | 100 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 12 | 13.19% |
▷ Public methods | 71 | 78.02% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 21.98% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected