Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.95ms] Passed 4 tests
A check of server-side resources used by Mobile Banner
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.06 ▼4.81 |
Dashboard /wp-admin | 3.36 ▲0.01 | 44.93 ▼17.67 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 58.14 ▲11.11 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 82.43 ▼9.91 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.37 ▲4.58 |
Mobile Banner /wp-admin/options-general.php?page=mobilebanner_config | 3.25 | 28.71 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 15 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
mobilebanner_url |
mobilebanner_chknewtab |
mobilebanner_bgcolour |
mobilebanner_chkclose |
mobilebanner_cookiedays |
widget_recent-posts |
mobilebanner_textcolour |
mobilebanner_width |
... |
Browser metrics Passed 4 tests
Mobile Banner: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲144 | 13.67 ▼0.54 | 5.83 ▲3.99 | 44.05 ▲0.22 |
Dashboard /wp-admin | 2,207 ▲16 | 4.89 ▼1.01 | 98.52 ▼5.58 | 38.62 ▼2.54 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.02 | 40.90 ▼0.07 | 33.75 ▲1.31 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.42 ▼4.75 | 607.37 ▼119.11 | 53.20 ▼24.84 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.16 ▼0.01 | 95.50 ▼2.65 | 44.87 ▲0.08 |
Mobile Banner /wp-admin/options-general.php?page=mobilebanner_config | 877 | 2.05 | 22.35 | 26.90 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mobile-banner/mobile-banner.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/mobile-banner/public/banner.php:72
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: phone, link, tablet, url, mobile...
mobile-banner/mobile-banner.php Passed 13 tests
Analyzing the main PHP file in "Mobile Banner" version 1.6
84 characters long description:
Create a banner with a link at the bottom of the screen, when viewed on mobile only.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin266 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 39 | 64 | 207 |
JavaScript | 2 | 6 | 27 | 45 |
CSS | 1 | 2 | 1 | 14 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 6 | |
▷ Named functions | 6 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/close.png | 1.98KB | 1.23KB | ▼ 37.96% |