Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/float-ads-fixed-position/float-ads-fixed-position.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; Float_Ads_Fixed_Position has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼56.28ms] Passed 4 tests
A check of server-side resources used by Float Ads Fixed Position
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.63 ▼36.52 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.86 ▼46.62 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.62 ▼44.43 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.12 ▼97.55 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.31 ▼30.55 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_float_ads_fixed_position |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Float Ads Fixed Position: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲110 | 13.44 ▼0.92 | 11.64 ▲9.64 | 43.24 ▼1.58 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▲0.03 | 94.49 ▲0.03 | 41.87 ▼3.96 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.99 ▲0.01 | 35.00 ▼2.40 | 34.50 ▼6.52 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.61 ▲0.08 | 694.81 ▲44.46 | 52.98 ▲2.98 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.21 ▲0.02 | 99.75 ▲4.30 | 44.77 ▲2.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/float-ads-fixed-position/float-ads-fixed-position.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; Float_Ads_Fixed_Position has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_float_ads_fixed_position
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/float-ads-fixed-position/float-ads-fixed-position.php:11
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (The widget configuration.), #2 (Display in font-end)
float-ads-fixed-position/float-ads-fixed-position.php 92% from 13 tests
"Float Ads Fixed Position" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 229 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin223 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 12 | 12 | 87 |
CSS | 1 | 0 | 0 | 83 |
JavaScript | 1 | 7 | 20 | 53 |
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.13 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 10.30KB | 6.78KB | ▼ 34.15% |
screenshot-2.png | 115.48KB | 34.30KB | ▼ 70.30% |