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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.70ms] Passed 4 tests
A check of server-side resources used by Floating Adsense Bar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.22 ▼1.60 |
Dashboard /wp-admin | 3.32 ▼0.02 | 40.59 ▼16.93 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 44.02 ▼5.96 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 89.73 ▼13.73 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 30.71 ▼2.16 |
Floating Adsense Bar /wp-admin/options-general.php?page=Floating_Ad | 3.19 | 29.93 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Floating Adsense Bar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 14.11 ▼0.26 | 5.28 ▲3.56 | 40.21 ▼0.54 |
Dashboard /wp-admin | 2,210 ▲25 | 5.90 ▲0.05 | 110.47 ▲7.52 | 41.98 ▲1.13 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▼0.06 | 38.38 ▼1.73 | 33.96 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,517 ▼11 | 17.67 ▼5.55 | 613.76 ▲2.73 | 46.42 ▼17.09 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.19 ▲0.01 | 98.06 ▼5.54 | 41.06 ▼4.01 |
Floating Adsense Bar /wp-admin/options-general.php?page=Floating_Ad | 872 | 2.05 | 22.73 | 27.34 |
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 uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=Floating_Ad
- > Warning in wp-content/plugins/floating-adsense-bar/floating-adsense-bar.php+128
Use of undefined constant FF_LeftRight - assumed 'FF_LeftRight' (this will throw an Error in a future version of PHP)
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
Please take a closer look at the following
- 1× 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/floating-adsense-bar/floating-adsense-bar.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
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
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Plug-in options screen.), #2 (Example of Adsense Bar.), #3 (Another example of Adsense Bar.)
floating-adsense-bar/floating-adsense-bar.php 92% from 13 tests
"Floating Adsense Bar" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 183 characters long)
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 detected146 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 18 | 19 | 118 |
CSS | 1 | 0 | 1 | 28 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.46MB with 0.27MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 382.68KB | 161.45KB | ▼ 57.81% |
screenshot-1.PNG | 30.08KB | 11.61KB | ▼ 61.39% |
screenshot-2.PNG | 58.03KB | 25.97KB | ▼ 55.25% |