Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/optimizer-for-faster-websites/adminpages/pso_admin.php+296
Function create_function() is deprecated
Server metrics [RAM: ▼1.90MB] [CPU: ▼49.54ms] Passed 4 tests
A check of server-side resources used by Optimizer For Faster Websites
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.12 ▼32.32 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.01 ▼43.63 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 6.50 ▼38.86 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 6.33 ▼83.34 |
Media Library /wp-admin/upload.php | 2.10 ▼1.12 | 5.26 ▼28.79 |
PageSpeed Optimize /wp-admin/tools.php?page=pagespeed_options | 2.10 | 5.82 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Optimizer For Faster Websites
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 13.64 ▼1.11 | 5.18 ▲3.33 | 37.31 ▼6.82 |
Dashboard /wp-admin | 2,211 ▲40 | 5.81 ▲0.96 | 105.93 ▼11.53 | 37.78 ▼4.54 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.02 ▼0.04 | 41.80 ▲5.78 | 36.83 ▲1.97 |
Add New Post /wp-admin/post-new.php | 1,521 ▲2 | 17.62 ▼5.50 | 631.36 ▼35.53 | 58.09 ▼0.80 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.27 ▲0.04 | 110.48 ▲7.56 | 40.94 ▼7.09 |
PageSpeed Optimize /wp-admin/tools.php?page=pagespeed_options | 831 | 2.07 | 25.87 | 24.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/optimizer-for-faster-websites/adminpages/pso_admin.php+296
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=pagespeed_options
- > Deprecated in wp-content/plugins/optimizer-for-faster-websites/adminpages/pso_admin.php+296
Function create_function() is deprecated
- > GET request to /wp-admin/tools.php?page=pagespeed_options
- > Notice in wp-content/plugins/optimizer-for-faster-websites/adminpages/pso_gen_fct.php+22
Undefined index: general_hidden_pso
- > GET request to /wp-admin/tools.php?page=pagespeed_options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/tools.php?page=pagespeed_options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/optimizer-for-faster-websites/pso_pagespeed.php
- > /wp-content/plugins/optimizer-for-faster-websites/pso_caching.php
- > /wp-content/plugins/optimizer-for-faster-websites/adminpages/pso_general.php
- > /wp-content/plugins/optimizer-for-faster-websites/pso_caching_modified.php
- > /wp-content/plugins/optimizer-for-faster-websites/pso_open_htaccess.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/optimizer-for-faster-websites/adminpages/pso_admin.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/optimizer-for-faster-websites/adminpages/pso_gen_fct.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
- Screenshots: These screenshots have no corresponding images in /assets: #1 ('General Tab' where you can activate Browser Caching and GZIP Compression with default settings.), #2 ('Browser Caching Tab' where you can modify the expiration time and check the impact of your .htaccess file.), #3 (Modification Form of Browser Caching.), #4 (The impact of the .htaccess file after you activated Browser Caching and GZIP Compression.), #5 (Error message if you are already using Browser Caching and try to activate it again.)
optimizer-for-faster-websites/pso_pagespeed.php 92% from 13 tests
"Optimizer For Faster Websites" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("optimizer-for-faster-websites.php" instead of "pso_pagespeed.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin615 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 131 | 271 | 590 |
CSS | 1 | 4 | 15 | 20 |
JavaScript | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 17.68KB | 8.75KB | ▼ 50.52% |
screenshot-5.png | 27.47KB | 13.22KB | ▼ 51.86% |
screenshot-4.png | 48.63KB | 19.91KB | ▼ 59.06% |
screenshot-3.png | 33.33KB | 16.03KB | ▼ 51.90% |
screenshot-1.png | 20.00KB | 9.38KB | ▼ 53.12% |