Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.57ms] Passed 4 tests
A check of server-side resources used by Promote mobile app on website
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.53 ▲1.12 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.18 ▼4.91 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.64 ▲1.36 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.28 ▼19.84 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.95 ▲2.81 |
Promote Mobile App /wp-admin/options-general.php?page=pmaw-options-page | 3.21 | 32.75 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Promote mobile app on website: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲145 | 14.06 ▼0.22 | 5.22 ▲3.59 | 45.46 ▲1.45 |
Dashboard /wp-admin | 2,211 ▲19 | 5.84 ▲0.89 | 97.87 ▼9.36 | 39.48 ▼1.36 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.03 ▼0.01 | 35.47 ▼2.10 | 28.58 ▼7.91 |
Add New Post /wp-admin/post-new.php | 1,532 ▲13 | 23.42 ▲0.06 | 692.41 ▲73.53 | 69.09 ▲19.94 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.31 ▲0.12 | 98.73 ▲3.07 | 40.30 ▼1.04 |
Promote Mobile App /wp-admin/options-general.php?page=pmaw-options-page | 918 | 2.17 | 24.53 | 27.25 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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/promote-mobile-app-on-website/admin/partials/promote-mobile-app-on-woocommerce-admin-display.php
- > /wp-content/plugins/promote-mobile-app-on-website/public/partials/promote-mobile-app-on-woocommerce-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: iphone, appbanner, app, promotion, ios
promote-mobile-app-on-website/promote-mobile-app-on-website.php 85% from 13 tests
"Promote mobile app on website" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected763 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 43 | 77 | 418 |
PHP | 12 | 165 | 539 | 320 |
CSS | 3 | 3 | 8 | 25 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/banner-example.png | 9.23KB | 4.36KB | ▼ 52.78% |