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.07MB] [CPU: ▼7.30ms] Passed 4 tests
A check of server-side resources used by Mobile Action Bar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 35.54 ▼7.17 |
Dashboard /wp-admin | 3.37 ▲0.06 | 45.59 ▲0.26 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 43.26 ▼5.65 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 81.40 ▼16.64 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 34.78 ▲1.57 |
Mobile Action Bar /wp-admin/options-general.php?page=mobile-action-bar | 3.28 | 36.82 |
Server storage [IO: ▲0.07MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
mobi_actionbar_global_logo |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
mobi_actionbar_global_action_link |
mobi_actionbar_global_button_text |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mobile Action Bar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲183 | 13.54 ▼0.68 | 4.89 ▲3.13 | 42.67 ▼2.72 |
Dashboard /wp-admin | 2,219 ▲28 | 5.03 ▼0.87 | 105.86 ▲4.36 | 39.60 ▼2.48 |
Posts /wp-admin/edit.php | 2,103 ▲11 | 2.03 ▲0.01 | 39.98 ▼2.17 | 35.29 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,541 ▲22 | 23.55 ▼0.04 | 595.86 ▼15.80 | 58.79 ▲7.40 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.22 ▲0.06 | 95.51 ▼1.86 | 43.92 ▲4.44 |
Mobile Action Bar /wp-admin/options-general.php?page=mobile-action-bar | 1,009 | 3.01 | 47.24 | 64.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- db_upgraded
- mobi_actionbar_global_logo
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- mobi_actionbar_global_button_text
- widget_recent-comments
- widget_recent-posts
- mobi_actionbar_global_action_link
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/mobile-action-bar/public/partials/mobi-actionbar-public-display.php
- > /wp-content/plugins/mobile-action-bar/admin/partials/mobi-actionbar-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Please describe screenshot #1 in mobile-action-bar/assets to your readme.txt
- Donate link: Please fix this invalid URI: "dangngocbinh.com"
mobile-action-bar/mobi-actionbar.php 85% from 13 tests
The main PHP script in "Mobile Action Bar" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("mobile-action-bar.php" instead of "mobi-actionbar.php")
- 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 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin387 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 155 | 542 | 381 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 2.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/demo-logo.png | 16.04KB | 7.86KB | ▼ 50.98% |