Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲5.45MB] [CPU: ▲28.63ms] 75% from 4 tests
This is a short check of server-side resources used by Instant Page Load
The following require your attention
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.45MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.27 ▲5.81 | 68.16 ▲27.13 |
Dashboard /wp-admin | 9.29 ▲5.99 | 79.82 ▲28.11 |
Posts /wp-admin/edit.php | 9.30 ▲5.94 | 86.17 ▲34.96 |
Add New Post /wp-admin/post-new.php | 9.93 ▲4.04 | 125.14 ▲24.31 |
Media Library /wp-admin/upload.php | 9.30 ▲6.07 | 77.72 ▲40.73 |
Freemius Debug [v.2.5.2] /wp-admin/admin.php?page=freemius | 9.30 | 63.80 |
Server storage [IO: ▲3.79MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 240 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
fs_gdpr |
fs_debug_mode |
fs_active_plugins |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
fs_accounts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Instant Page Load
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲103 | 13.69 ▼0.62 | 1.75 ▼0.27 | 29.30 ▼14.04 |
Dashboard /wp-admin | 2,268 ▲80 | 5.91 ▲0.99 | 114.03 ▲0.53 | 69.62 ▲28.46 |
Posts /wp-admin/edit.php | 2,163 ▲74 | 2.18 ▲0.17 | 40.40 ▲2.15 | 38.20 ▲3.24 |
Add New Post /wp-admin/post-new.php | 1,568 ▲49 | 22.23 ▼0.84 | 689.12 ▼41.72 | 42.85 ▼9.46 |
Media Library /wp-admin/upload.php | 1,462 ▲74 | 4.23 ▲0.10 | 104.09 ▼15.15 | 96.62 ▲49.22 |
Freemius Debug [v.2.5.2] /wp-admin/admin.php?page=freemius | 1,091 | 2.11 | 24.97 | 28.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/instant-page-load/freemius/includes/class-freemius.php+8772
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 10 options in the database
- fs_active_plugins
- db_upgraded
- widget_theysaidso_widget
- fs_gdpr
- theysaidso_admin_options
- can_compress_scripts
- fs_debug_mode
- widget_recent-posts
- fs_accounts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > Notice in wp-content/plugins/xrely-autocomplete/class.xrely-admin.php+329
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=freemius
- > Warning in wp-content/plugins/xrely-autocomplete/class.xrely.php+10
include(wp-content/plugins/xrely-autocomplete/view/front.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=freemius
- > Warning in wp-content/plugins/xrely-autocomplete/class.xrely.php+10
include(): Failed opening 'wp-content/plugins/xrely-autocomplete/view/front.php' for inclusion (include_path='.:/usr/share/php')
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
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/instant-page-load/views/pro-features.php:2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/instant-page-load/functions/helpers.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/instant-page-load/functions/helpers.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/instant-page-load/functions/helpers.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/instant-page-load/functions/helpers.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/instant-page-load/functions/helpers.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/instant-page-load/functions/helpers.php on line 3
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 13 tag instead of maximum 10
instant-page-load/wp-instant-page-load.php 69% from 13 tests
The main file in "Instant Page Load" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("instant-page-load.php" instead of "wp-instant-page-load.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Git Repository: Please do not include Git repositories in your plugin
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected36,916 lines of code in 185 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 147 | 8,575 | 17,720 | 35,241 |
CSS | 22 | 2 | 1 | 958 |
JavaScript | 10 | 43 | 59 | 414 |
Markdown | 2 | 68 | 0 | 215 |
JSON | 4 | 0 | 0 | 88 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 72.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 89.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 68 | |
▷ Abstract classes | 4 | 5.88% |
▷ Concrete classes | 64 | 94.12% |
▷ Final classes | 1 | 1.56% |
Methods | 1,443 | |
▷ Static methods | 198 | 13.72% |
▷ Public methods | 1,054 | 73.04% |
▷ Protected methods | 19 | 1.32% |
▷ Private methods | 370 | 25.64% |
Functions | 105 | |
▷ Named functions | 102 | 97.14% |
▷ Anonymous functions | 3 | 2.86% |
Constants | 150 | |
▷ Global constants | 103 | 68.67% |
▷ Class constants | 47 | 31.33% |
▷ Public constants | 47 | 100.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
7 PNG files occupy 0.36MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/survey.png | 7.31KB | 3.08KB | ▼ 57.88% |
assets/img/Stop Front-end page loading.png | 135.02KB | 49.60KB | ▼ 63.26% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/img/Works Like React.png | 35.50KB | 14.08KB | ▼ 60.34% |