Benchmarks
Plugin footprint 83% 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.02MB] [CPU: ▼8.81ms] Passed 4 tests
This is a short check of server-side resources used by Basic Optimization
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 46.20 ▼2.65 |
Dashboard /wp-admin | 3.32 ▲0.02 | 55.25 ▲0.91 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.72 ▼4.90 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.20 ▼28.58 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 39.98 ▲2.75 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 11 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
basic_optimization_hide_wp_version |
basic_optimization_stop_heartbeat |
can_compress_scripts |
basic_optimization_installed |
basic_optimization_disable_emoticons |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Basic Optimization
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.34 ▼0.02 | 1.81 ▼0.14 | 45.13 ▼2.75 |
Dashboard /wp-admin | 2,211 ▲31 | 5.53 ▼0.15 | 90.05 ▲1.09 | 37.98 ▼3.07 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.04 ▲0.04 | 35.47 ▼5.63 | 33.47 ▼4.78 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 18.21 ▼4.94 | 678.84 ▲56.18 | 70.66 ▲11.29 |
Media Library /wp-admin/upload.php | 1,419 ▲16 | 4.10 ▼0.08 | 97.98 ▼5.84 | 44.57 ▼1.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 11 options
- widget_theysaidso_widget
- widget_recent-comments
- basic_optimization_disable_emoticons
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- basic_optimization_installed
- basic_optimization_version
- basic_optimization_stop_heartbeat
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Trait 'Basic\\Optimization\\Traits\\Form_Error' not found in wp-content/plugins/basic-optimization/includes/Admin/GeneralSettings.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/basic-optimization/includes/Admin/views/general-settings.php:2
- > 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 86% from 29 tests
readme.txt 94% 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
Attributes that need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
basic-optimization/main.php 77% from 13 tests
Analyzing the main PHP file in "Basic Optimization" version 1.0
The following require your attention:
- Domain Path: The domain path folder was not found ("/languages")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 373 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("basic-optimization.php" instead of "main.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
There were no executable files found in this plugin786 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 191 | 416 | 765 |
JSON | 2 | 0 | 0 | 21 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 8.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 53 | |
▷ Static methods | 3 | 5.66% |
▷ Public methods | 51 | 96.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.77% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin