Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▲0.20ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Floating Content
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 40.66 ▲3.20 |
Dashboard /wp-admin | 3.46 ▲0.15 | 50.21 ▼0.77 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 46.54 ▼4.92 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 94.04 ▲10.25 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.53 ▲3.28 |
All Advanced Floating Content /wp-admin/edit.php?post_type=ct_afc | 3.42 | 34.43 |
Add New /wp-admin/post-new.php?post_type=ct_afc | 3.62 | 47.13 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
ct_afc_remind_later |
theysaidso_admin_options |
widget_recent-posts |
ct_afc_remind_date |
ct_afc_installed_date |
ct_afc_options |
verified_purchase |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Floating Content
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲181 | 13.57 ▼0.84 | 5.78 ▲3.93 | 42.58 ▲0.53 |
Dashboard /wp-admin | 2,234 ▲56 | 5.84 ▲0.13 | 91.79 ▼22.06 | 39.00 ▼4.26 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.31 ▲0.28 | 36.27 ▼4.21 | 34.23 ▼7.10 |
Add New Post /wp-admin/post-new.php | 1,560 ▲32 | 23.18 ▲0.18 | 661.02 ▼144.21 | 36.08 ▼26.72 |
Media Library /wp-admin/upload.php | 1,443 ▲43 | 4.22 ▼0.01 | 92.30 ▼22.32 | 40.62 ▼6.28 |
All Advanced Floating Content /wp-admin/edit.php?post_type=ct_afc | 1,087 | 2.22 | 34.53 | 30.93 |
Add New /wp-admin/post-new.php?post_type=ct_afc | 2,687 | 8.51 | 190.89 | 135.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 11 options in the database
- ct_afc_remind_later
- ct_afc_options
- theysaidso_admin_options
- verified_purchase
- ct_afc_installed_date
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- ct_afc_remind_date
- widget_theysaidso_widget
- ...
Smoke tests 25% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/advanced-floating-content-lite/public/partials/advanced-floating-content-public-display.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/advanced-floating-content-lite/admin/views/advanced-floating-content-premium-display.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advanced-floating-content-lite/admin/views/advanced-floating-content-admin-display.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=ct_afc
- > Network (severe)
https://codetides.piwikpro.com/piwik.js - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: You are using too many tags: 15 tag instead of maximum 10
- Plugin Name: You should set the name of your plugin on the first line (
=== advanced-floating-content-lite ===
)
advanced-floating-content-lite/advanced-floating-content.php 77% from 13 tests
The main PHP script in "Advanced Floating Content" version 1.2.5 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-floating-content-lite.php" instead of "advanced-floating-content.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 223 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected720 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 171 | 609 | 610 |
CSS | 2 | 0 | 8 | 80 |
JavaScript | 2 | 9 | 29 | 30 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 5.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 34 | 82.93% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 17.07% |
Functions | 5 | |
▷ Named functions | 5 | 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.29MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/premium.png | 127.09KB | 37.95KB | ▼ 70.14% |
admin/assets/premium-options-3.png | 23.15KB | 9.40KB | ▼ 59.41% |
admin/assets/premium-options-1.png | 40.96KB | 18.85KB | ▼ 53.97% |
public/images/close.png | 2.35KB | 1.49KB | ▼ 36.56% |
admin/assets/premium-options-2.png | 103.51KB | 46.04KB | ▼ 55.52% |