Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼139.75ms] Passed 4 tests
A check of server-side resources used by WPMobile Apps
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 36.98 ▲12.24 |
Dashboard /wp-admin | 3.06 ▲0.00 | 48.45 ▲4.56 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 49.50 ▲4.04 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 90.28 ▼569.08 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 34.35 ▲1.50 |
Server storage [IO: ▲2.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 258 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wpmob_cookie_name |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPMobile Apps
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.76 ▲0.20 | 7.68 ▼0.37 | 49.21 ▼1.89 |
Dashboard /wp-admin | 2,973 ▲39 | 5.88 ▼0.04 | 143.26 ▼0.09 | 115.45 ▼6.91 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.12 | 65.42 ▼2.00 | 88.27 ▼11.33 |
Add New Post /wp-admin/post-new.php | 1,676 ▼7 | 18.87 ▲0.17 | 367.08 ▼27.71 | 109.05 ▼7.49 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.00 ▼0.02 | 153.02 ▼13.52 | 119.82 ▼1.23 |
Uninstaller [IO: ▲2.06MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the followingThis plugin did not uninstall successfully, leaving 1 option in the database
- Incomplete uninstall procedure, leaving 258 files (2.06MB) in the plugin directory
- (new file) apps/contact-us/app.js
- (new file) apps/call-us/langs/wpmob-call-us-fr_FR.po
- (new file) apps/call-us/app.js
- (new file) README.md
- (new file) LICENSE
- (new file) apps/call-us/app.php
- (new file) apps/call-us/view.php
- (new file) apps/call-us/app.css
- (new file) apps/contact-us/app.css
- (new file) apps/call-us/langs/wpmob-call-us-fr_FR.mo
- ...
- wpmob_cookie_name
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wpmobile-apps/themes/mobilissimo/css/style.php
- 52× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'WPMOB_DIR/core/theme/class-wpmob-theme.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpmobile-apps/core/theme/class-wpmob-mobilissimo.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wpmobile-apps/themes/mobilissimo/page-gallery3.php:3
- > PHP Warning
Use of undefined constant WPMOB_DIR - assumed 'WPMOB_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpmobile-apps/core/theme/class-wpmob-mobilissimo.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpmobile-apps/themes/mobilissimo/functions/config.php:25
- > PHP Warning
Use of undefined constant WPMOB_DIR - assumed 'WPMOB_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpmobile-apps/core/class-wpmob-app.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpmobile-apps/themes/mobilissimo/functions/config.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/wpmobile-apps/themes/mobilissimo/acera-options/includes/theme_info.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/wpmobile-apps/themes/mobilissimo/acera-options/includes/theme_info.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_pages() in wp-content/plugins/wpmobile-apps/themes/mobilissimo/acera-options/options/acera_options.php:4
- > PHP Warning
require_once(WPMOB_DIR/core/class-wpmob-app.php): failed to open stream: No such file or directory in wp-content/plugins/wpmobile-apps/core/class-wpmob.php on line 4
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: iphone, mobile, ipad, smartphone, mobile plugin...
wpmobile-apps/wpmob.php 85% from 13 tests
The principal PHP file in "WPMobile Apps" v. 1.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wpmobile-apps.php" instead of "wpmob.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
No dangerous file extensions were detected18,197 lines of code in 107 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 1,619 | 1,896 | 7,302 |
CSS | 20 | 601 | 767 | 4,720 |
JSON | 1 | 0 | 0 | 2,876 |
JavaScript | 20 | 397 | 500 | 2,074 |
SVG | 2 | 0 | 0 | 888 |
PO File | 6 | 113 | 140 | 334 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 34.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 2 | 14.29% |
▷ Concrete classes | 12 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 154 | |
▷ Static methods | 19 | 12.34% |
▷ Public methods | 153 | 99.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.65% |
Functions | 44 | |
▷ Named functions | 44 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 15 | 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
128 PNG files occupy 0.26MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/mobilissimo/acera-options/images/icons/recycle-filled.png | 1.45KB | 0.68KB | ▼ 52.80% |
themes/mobilissimo/acera-options/assets/c_brown.png | 1.15KB | 0.09KB | ▼ 91.75% |
themes/mobilissimo/acera-options/images/colorpicker_rgb_b.png | 0.95KB | 0.76KB | ▼ 19.48% |
themes/mobilissimo/acera-options/images/buttonblue_bg.png | 0.16KB | 0.20KB | 0.00% |
imgs/top_men_bg.png | 3.02KB | 1.03KB | ▼ 65.74% |