Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼6.86ms] Passed 4 tests
Server-side resources used by mobble
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 56.37 ▲18.81 |
Dashboard /wp-admin | 3.50 ▲0.15 | 48.45 ▼7.13 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 47.61 ▲1.78 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 90.44 ▼19.62 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 34.70 ▼2.45 |
mobble /wp-admin/options-general.php?page=mobble/mobble.php | 3.39 | 29.64 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
mobble_body_class |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by mobble
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.32 ▼0.05 | 1.99 ▲0.33 | 43.71 ▲4.58 |
Dashboard /wp-admin | 2,199 ▲19 | 5.63 ▲0.09 | 96.18 ▲8.03 | 43.73 ▲1.23 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.03 | 34.97 ▼1.98 | 35.63 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.21 ▼0.22 | 662.95 ▲18.69 | 51.89 ▲0.15 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▲0.01 | 93.90 ▼6.10 | 41.74 ▼3.72 |
mobble /wp-admin/options-general.php?page=mobble/mobble.php | 846 | 2.18 | 24.12 | 26.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/mobble/mobble.php:39
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=mobble/mobble.php
- > Network (severe)
https://button.flattr.com/loader.js?mode=auto - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: functions, mobile, css, queries, conditional...
mobble/mobble.php Passed 13 tests
The principal PHP file in "mobble" v. 1.6 is loaded by WordPress automatically on each request
125 characters long description:
Conditional functions for detecting a variety of mobile devices and tablets. For example is_android(), is_ios(), is_iphone().
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
Success! There were no dangerous files found in this plugin1,117 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 247 | 793 | 908 |
PO File | 2 | 20 | 20 | 108 |
Markdown | 1 | 34 | 0 | 101 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.75 |
Average class complexity | 134.00 |
▷ Minimum class complexity | 134.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 4.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.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 | 35 | |
▷ Static methods | 9 | 25.71% |
▷ Public methods | 33 | 94.29% |
▷ Protected methods | 2 | 5.71% |
▷ Private methods | 0 | 0.00% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 3 | 25.00% |
▷ Class constants | 9 | 75.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
scott.ee.png | 0.46KB | 0.46KB | 0.00% |
toggle.png | 0.74KB | 0.49KB | ▼ 33.90% |