Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Shops2AppsMobileApp::register_register_activation_hook() should not be called statically
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.08ms] Passed 4 tests
This is a short check of server-side resources used by Shops2Apps
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.65 ▲1.93 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.80 ▼4.13 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.86 ▼3.05 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.21 ▼3.05 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.33 ▲3.70 |
mApp - Settings /wp-admin/admin.php?page=shops2apps-ma-settings | 3.24 | 29.68 |
mApp - Panel /wp-admin/admin.php?page=shops2apps-ma | 3.26 | 29.98 |
Server storage [IO: ▲0.93MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Shops2Apps
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.42 ▼1.26 | 1.67 ▼0.15 | 43.24 ▼5.32 |
Dashboard /wp-admin | 2,235 ▲47 | 5.80 ▼0.09 | 102.76 ▼5.50 | 40.03 ▼0.43 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.00 ▼0.00 | 41.89 ▲1.08 | 35.08 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,563 ▲30 | 23.22 ▼0.22 | 627.42 ▲27.09 | 51.52 ▲2.03 |
Media Library /wp-admin/upload.php | 1,426 ▲41 | 4.21 ▲0.03 | 100.34 ▼2.55 | 41.80 ▼3.45 |
mApp - Settings /wp-admin/admin.php?page=shops2apps-ma-settings | 1,004 | 2.24 | 30.14 | 39.29 |
mApp - Panel /wp-admin/admin.php?page=shops2apps-ma | 1,222 | 2.55 | 44.79 | 43.95 |
/wp-admin/admin.php?page=#shops2apps | 28 | 0.44 | 0.09 | 4.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shops2apps-ma
- > Warning in wp-content/plugins/shops2apps/class.shops2apps-mobile-app-util.php+29
file_get_contents(wp-content/plugins/shops2apps/configs/conf.user.json): failed to open stream: No such file or directory
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shops2apps-ma
- > Notice in wp-content/plugins/shops2apps/views/shops2apps-ma_menu_my_panel.php+39
Undefined index: tab
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shops2apps-ma
- > Notice in wp-content/plugins/shops2apps/views/shops2apps-ma_tab_design.php+96
Undefined index: design
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shops2apps-ma
- > Notice in wp-content/plugins/shops2apps/views/shops2apps-ma_tab_design.php+96
Trying to access array offset on value of type null
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=#shops2apps
- > Network (severe)
wp-admin/admin.php?page=#shops2apps - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
shops2apps/shops2apps-mobile-app-plugin.php 92% from 13 tests
The main PHP file in "Shops2Apps" ver. 0.1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("shops2apps.php" instead of "shops2apps-mobile-app-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected6,253 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 1,299 | 17 | 4,238 |
PHP | 13 | 155 | 27 | 1,249 |
SVG | 1 | 0 | 0 | 640 |
JavaScript | 1 | 8 | 12 | 125 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 2 | 9.52% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 9.23KB | 4.04KB | ▼ 56.29% |