Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.25MB] [CPU: ▲13.02ms] 50% from 4 tests
This is a short check of server-side resources used by Mobile Blocks
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 958.02ms on /wp-admin/plugins.php?page=mobile-pages)
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.25MB on /wp-admin/plugins.php?page=mobile-pages)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.11 ▲5.65 | 61.98 ▲15.14 |
Dashboard /wp-admin | 9.13 ▲5.79 | 67.67 ▲2.75 |
Posts /wp-admin/edit.php | 9.13 ▲5.78 | 69.64 ▲26.61 |
Add New Post /wp-admin/post-new.php | 9.66 ▲3.77 | 108.03 ▲7.58 |
Media Library /wp-admin/upload.php | 9.13 ▲5.91 | 62.80 ▲32.41 |
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius | 9.13 | 52.46 |
Gutenberg Mobile /wp-admin/plugins.php?page=mobile-pages | 9.24 | 958.02 |
Server storage [IO: ▲3.53MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 198 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
fs_active_plugins |
widget_theysaidso_widget |
fs_accounts |
db_upgraded |
widget_recent-comments |
fs_gdpr |
fs_debug_mode |
Browser metrics Passed 4 tests
A check of browser resources used by Mobile Blocks
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲77 | 14.72 ▲0.19 | 1.76 ▼0.09 | 27.96 ▼18.36 |
Dashboard /wp-admin | 2,219 ▲39 | 5.66 ▲0.00 | 94.52 ▼4.59 | 44.77 ▲2.20 |
Posts /wp-admin/edit.php | 2,122 ▲25 | 2.00 ▲0.05 | 34.33 ▼4.73 | 32.63 ▲0.57 |
Add New Post /wp-admin/post-new.php | 1,539 ▼3 | 23.51 ▲5.21 | 667.39 ▲44.54 | 53.79 ▼17.73 |
Media Library /wp-admin/upload.php | 1,415 ▲21 | 4.17 ▼0.03 | 95.49 ▲3.08 | 42.39 ▲2.74 |
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius | 1,077 | 1.69 | 25.98 | 28.31 |
Gutenberg Mobile /wp-admin/plugins.php?page=mobile-pages | 1,326 | 1.89 | 26.24 | 49.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/mobile-pages/src/wp-sdk/includes/class-freemius.php+8911
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 10 options
- fs_gdpr
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- fs_debug_mode
- fs_active_plugins
- db_upgraded
- fs_accounts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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 fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/mobile-pages/src/tpl-settings-page.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mobile-pages/src/tpl-preview.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% 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
6 plugin tags: mobile, mobile only, gutenberg mobile, gutenberg, mobile content...
mobile-pages/plugin.php 92% from 13 tests
The main file in "Mobile Blocks" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mobile-pages.php" instead of "plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin40,768 lines of code in 147 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 114 | 7,777 | 16,846 | 32,719 |
JSON | 3 | 0 | 0 | 7,430 |
JavaScript | 9 | 81 | 166 | 480 |
CSS | 18 | 8 | 25 | 71 |
Sass | 3 | 14 | 1 | 68 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,029)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 92.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,029.00 |
Average method complexity | 4.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 89.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 2 | 4.26% |
▷ Concrete classes | 45 | 95.74% |
▷ Final classes | 0 | 0.00% |
Methods | 1,211 | |
▷ Static methods | 183 | 15.11% |
▷ Public methods | 851 | 70.27% |
▷ Protected methods | 16 | 1.32% |
▷ Private methods | 344 | 28.41% |
Functions | 94 | |
▷ Named functions | 93 | 98.94% |
▷ Anonymous functions | 1 | 1.06% |
Constants | 130 | |
▷ Global constants | 98 | 75.38% |
▷ Class constants | 32 | 24.62% |
▷ Public constants | 32 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/wp-sdk/assets/img/mobile-pages.png | 3.12KB | 2.85KB | ▼ 8.43% |
src/ipad-frame.png | 25.80KB | 26.30KB | 0.00% |
src/iphone-frame.png | 34.14KB | 34.92KB | 0.00% |
src/wp-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
src/wp-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |