Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.62MB] [CPU: ▲4.47ms] 75% from 4 tests
This is a short check of server-side resources used by WP FOFT Loader
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 1,906.42ms on /wp-admin/options-general.php?page=wp-foft-loader)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.33 ▲1.87 | 74.92 ▲31.49 |
Dashboard /wp-admin | 3.98 ▲0.68 | 52.62 ▲0.62 |
Posts /wp-admin/edit.php | 4.03 ▲0.68 | 55.59 ▲7.68 |
Add New Post /wp-admin/post-new.php | 6.50 ▲0.61 | 100.92 ▲3.87 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 38.54 ▲5.71 |
WP FOFT Loader /wp-admin/options-general.php?page=wp-foft-loader | 4.01 | 1,906.42 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 4.09 | 46.52 |
Server storage [IO: ▲4.92MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 588 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
wp-foft-loaderversion |
fs_debug_mode |
can_compress_scripts |
wpfl_version |
fs_active_plugins |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
WP FOFT Loader: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲93 | 14.04 ▼0.36 | 1.89 ▲0.24 | 28.13 ▼16.11 |
Dashboard /wp-admin | 2,219 ▲45 | 5.59 ▲0.09 | 93.14 ▼7.79 | 45.37 ▲3.75 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.00 ▲0.04 | 41.60 ▲1.78 | 38.31 ▲3.27 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.36 ▲0.15 | 601.03 ▼47.68 | 63.91 ▲13.66 |
Media Library /wp-admin/upload.php | 1,421 ▲18 | 4.17 ▲0.00 | 112.79 ▲16.43 | 52.15 ▲9.19 |
WP FOFT Loader /wp-admin/options-general.php?page=wp-foft-loader | 1,289 | 3.39 | 58.37 | 112.09 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,086 | 1.66 | 27.89 | 30.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wp-foft-loader/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 11 options
- can_compress_scripts
- wp-foft-loaderversion
- fs_active_plugins
- db_upgraded
- widget_recent-comments
- wpfl_version
- theysaidso_admin_options
- widget_theysaidso_widget
- fs_accounts
- widget_recent-posts
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-foft-loader
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-foft-loader/includes/class-wp-foft-loader-ratings.php
- > /wp-content/plugins/wp-foft-loader/includes/class-wp-foft-loader-js-vars.php
- 168× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_Token_Tag' not found in wp-content/plugins/wp-foft-loader/includes/vendor/htmlpurifier/library/HTMLPurifier/Token/End.php:10
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef_Enum' not found in wp-content/plugins/wp-foft-loader/includes/vendor/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/FrameTarget.php:6
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_HTMLModule' not found in wp-content/plugins/wp-foft-loader/includes/vendor/htmlpurifier/library/HTMLPurifier/HTMLModule/Nofollow.php:7
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_URIScheme' not found in wp-content/plugins/wp-foft-loader/includes/vendor/htmlpurifier/library/HTMLPurifier/URIScheme/tel.php:12
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_URIFilter' not found in wp-content/plugins/wp-foft-loader/includes/vendor/htmlpurifier/library/HTMLPurifier/URIFilter/HostBlacklist.php:7
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_URIFilter' not found in wp-content/plugins/wp-foft-loader/includes/vendor/htmlpurifier/library/HTMLPurifier/URIFilter/SafeIframe.php:9
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/wp-foft-loader/includes/vendor/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Background.php:7
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_Injector' not found in wp-content/plugins/wp-foft-loader/includes/vendor/htmlpurifier/library/HTMLPurifier/Injector/SafeObject.php:7
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/wp-foft-loader/includes/vendor/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/FontFamily.php:6
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_HTMLModule' not found in wp-content/plugins/wp-foft-loader/includes/vendor/htmlpurifier/library/HTMLPurifier/HTMLModule/Presentation.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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #7 (Documentation (2): Video tutorials)
wp-foft-loader/wp-foft-loader.php Passed 13 tests
The principal PHP file in "WP FOFT Loader" v. 2.1.31 is loaded by WordPress automatically on each request
132 characters long description:
Optimize and speed up web font loading and improve UX by minimizing Flash of Invisible Text, Flash of Unstyled Text, and DOM Reflow.
Code Analysis 95% from 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
Everything looks great! No dangerous files found in this plugin58,867 lines of code in 407 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 373 | 11,739 | 29,404 | 54,860 |
JavaScript | 12 | 484 | 148 | 2,995 |
Markdown | 3 | 365 | 1 | 753 |
CSS | 16 | 31 | 2 | 177 |
JSON | 2 | 0 | 0 | 81 |
INI | 1 | 1 | 1 | 1 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,096)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 232)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 28.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 232.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 298 | |
▷ Abstract classes | 17 | 5.70% |
▷ Concrete classes | 281 | 94.30% |
▷ Final classes | 0 | 0.00% |
Methods | 2,161 | |
▷ Static methods | 252 | 11.66% |
▷ Public methods | 1,591 | 73.62% |
▷ Protected methods | 102 | 4.72% |
▷ Private methods | 468 | 21.66% |
Functions | 108 | |
▷ Named functions | 108 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 219 | |
▷ Global constants | 114 | 52.05% |
▷ Class constants | 105 | 47.95% |
▷ Public constants | 105 | 100.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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/wp-foft-loader.png | 6.43KB | 5.40KB | ▼ 16.03% |