Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/simple-optimizer/simple-optimizer-loader.php+28
Undefined index: action
Server metrics [RAM: ▼1.85MB] [CPU: ▼186.45ms] Passed 4 tests
This is a short check of server-side resources used by Simple Optimizer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.78 ▼0.94 | 5.64 ▼15.62 |
Dashboard /wp-admin | 1.80 ▼1.26 | 5.77 ▼40.71 |
Posts /wp-admin/edit.php | 1.80 ▼1.31 | 6.76 ▼42.91 |
Add New Post /wp-admin/post-new.php | 1.80 ▼3.64 | 6.87 ▼632.26 |
Media Library /wp-admin/upload.php | 1.80 ▼1.20 | 6.58 ▼29.91 |
Simple Optimizer /wp-admin/options-general.php?page=simple-optimizer-settings | 1.80 | 6.66 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Simple Optimizer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.94 ▲0.26 | 9.67 ▲0.56 | 45.91 ▼5.66 |
Dashboard /wp-admin | 2,978 ▲47 | 5.91 ▼0.16 | 136.63 ▼2.14 | 110.00 ▼8.59 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.72 ▲0.02 | 62.68 ▼2.34 | 85.87 ▼5.48 |
Add New Post /wp-admin/post-new.php | 1,675 ▼8 | 18.86 ▲0.32 | 376.04 ▼0.68 | 108.48 ▼8.04 |
Media Library /wp-admin/upload.php | 1,818 ▲8 | 5.03 ▼0.08 | 144.41 ▼8.24 | 118.42 ▼4.00 |
Simple Optimizer /wp-admin/options-general.php?page=simple-optimizer-settings | 1,804 | 8.17 | 302.45 | 80.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/simple-optimizer/simple-optimizer-plugin.php+85
Trying to access array offset on value of type bool
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simple-optimizer-settings
- > Notice in wp-content/plugins/simple-optimizer/simple-optimizer-plugin.php+324
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simple-optimizer-settings
- > Notice in wp-content/plugins/simple-optimizer/simple-optimizer-plugin.php+324
Trying to access array offset on value of type null
SRP 50% 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 fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-optimizer/simple-optimizer-loader.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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: Please add images for these screenshots: #1 (WordPress Optimizations Settings Page), #2 (Database Optimizations Settings Page), #3 (Optimizer Program Output)
simple-optimizer/simple-optimizer-loader.php 92% from 13 tests
This is the main PHP file of "Simple Optimizer" version 1.2.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-optimizer.php" instead of "simple-optimizer-loader.php")
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
No dangerous file extensions were detected880 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 555 | 181 | 880 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 27.33 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.11% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
No PNG images were found in this plugin