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
Installer ran successfully
Server metrics [RAM: ▼0.57MB] [CPU: ▼29.52ms] Passed 4 tests
A check of server-side resources used by Mobile CSS
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.18 | 46.90 ▲2.95 |
Dashboard /wp-admin | 3.38 ▼0.00 | 36.69 ▼32.53 |
Posts /wp-admin/edit.php | 3.63 ▲0.23 | 51.06 ▼3.36 |
Add New Post /wp-admin/post-new.php | 3.37 ▼2.56 | 36.86 ▼78.34 |
Media Library /wp-admin/upload.php | 3.39 ▲0.12 | 31.89 ▼3.83 |
CSS Rules /wp-admin/edit.php?post_type=mc_rule | 3.43 | 35.37 |
Create New /wp-admin/post-new.php?post_type=mc_rule | 3.36 | 36.25 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mobile CSS
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲58 | 14.35 ▲0.05 | 2.15 ▲0.28 | 43.73 ▼1.14 |
Dashboard /wp-admin | 2,225 ▲48 | 5.52 ▼0.09 | 93.54 ▼0.13 | 42.99 ▼3.60 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.02 ▲0.01 | 35.24 ▼3.87 | 39.14 ▲6.13 |
Add New Post /wp-admin/post-new.php | 1,549 ▲18 | 23.42 ▲0.25 | 681.53 ▲33.39 | 58.03 ▲7.47 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.18 ▼0.03 | 111.21 ▲11.75 | 46.17 ▲1.25 |
CSS Rules /wp-admin/edit.php?post_type=mc_rule | 1,088 | 1.98 | 32.08 | 29.63 |
Create New /wp-admin/post-new.php?post_type=mc_rule | 2,102 | 4.01 | 79.86 | 46.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/edit.php?post_type=mc_rule
- > Notice in wp-content/plugins/mobile-css/mc-includes/mc.functions.php+159
Trying to get property 'post_type' of non-object
- > GET request to /wp-admin/post-new.php?post_type=mc_rule
- > Notice in wp-content/plugins/mobile-css/mc-includes/mc.meta_box.php+64
Undefined index: MC_noncename
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=mc_rule
- > Notice in wp-content/plugins/mobile-css/mc-includes/mc.meta_box.php+45
Undefined offset: 0
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=mc_rule
- > Notice in wp-content/plugins/mobile-css/mc-includes/mc.functions.php+288
Undefined index: readonly
- > GET request to /wp-admin/post-new.php?post_type=mc_rule
- > Notice in wp-content/plugins/mobile-css/mc-includes/mc.functions.php+293
Undefined index: rowclass
SRP 50% 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
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobile-css/mc-includes/mc.post_types.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobile-css/mc-includes/mc.post_types.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobile-css/mc-includes/mc.functions.php:111
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobile-css/mc-includes/mc.meta_box.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: iphone, mobile, android, ipad, tablet...
mobile-css/mobile-css.php Passed 13 tests
"Mobile CSS" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
67 characters long description:
A plugin to create special CSS rules for specific mobile instances.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected929 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 310 | 528 | 929 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.79 |
Average class complexity | 120.00 |
▷ Minimum class complexity | 120.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 5.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.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 | 29 | |
▷ Static methods | 9 | 31.03% |
▷ Public methods | 27 | 93.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.90% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 1 | 10.00% |
▷ Class constants | 9 | 90.00% |
▷ Public constants | 9 | 100.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
There are no PNG files in this plugin