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: ▲2.53MB] [CPU: ▲10.89ms] Passed 4 tests
An overview of server-side resources used by MaanStore API
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.00 ▲2.54 | 54.65 ▲11.82 |
Dashboard /wp-admin | 5.83 ▲2.48 | 65.15 ▲3.16 |
Posts /wp-admin/edit.php | 5.94 ▲2.59 | 69.02 ▲24.60 |
Add New Post /wp-admin/post-new.php | 8.69 ▲2.81 | 105.04 ▲3.98 |
Media Library /wp-admin/upload.php | 5.75 ▲2.52 | 59.93 ▲26.92 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
maanstore_purchase_code |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
MaanStore API: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.23 ▼1.19 | 1.67 ▲0.17 | 35.39 ▼5.63 |
Dashboard /wp-admin | 2,222 ▲37 | 4.84 ▼1.02 | 109.52 ▲4.99 | 43.16 ▲4.76 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.01 ▼0.06 | 39.60 ▲4.81 | 34.61 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,546 ▲26 | 23.22 ▼0.00 | 656.15 ▼6.50 | 57.03 ▲1.41 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.18 ▼0.02 | 96.56 ▼4.29 | 42.92 ▼1.06 |
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
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- maanstore_purchase_code
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 27× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FlutterBaseController' not found in wp-content/plugins/maanstore-api/includes/flutter-api/controllers/helpers/delivery-woo-helper.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maanstore-api/includes/flutter-api/controllers/flutter-tera-wallet.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maanstore-api/includes/flutter-api/controllers/flutter-myfatoorah.php:27
- > PHP Fatal error
Uncaught Error: Class 'FlutterBaseController' not found in wp-content/plugins/maanstore-api/includes/flutter-api/controllers/flutter-vendor-admin.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/maanstore-api/includes/flutter-api/controllers/flutter-home.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Posts_Controller' not found in wp-content/plugins/maanstore-api/includes/flutter-api/controllers/listing-rest-api/class.api.fields.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maanstore-api/includes/flutter-api/controllers/flutter-multi-vendor.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maanstore-api/includes/flutter-api/controllers/flutter-booking.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maanstore-api/includes/flutter-api/controllers/maan-flutter-delivery.php:27
- > PHP Fatal error
Uncaught Error: Class 'WC_REST_Products_Controller' not found in wp-content/plugins/maanstore-api/includes/flutter-api/controllers/flutter-products.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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: maanstore, maantheme, flutter, react-native, ios...
maanstore-api/maanstore-api.php Passed 13 tests
"MaanStore API" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
102 characters long description:
The MaanStore API Plugin which is used for REST API configurations of mobile apps created by MaanTheme
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin19,510 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 2,466 | 2,038 | 19,342 |
JavaScript | 1 | 6 | 0 | 161 |
CSS | 2 | 0 | 3 | 7 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 71.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 396.00 |
Average method complexity | 7.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 37 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 443 | |
▷ Static methods | 11 | 2.48% |
▷ Public methods | 395 | 89.16% |
▷ Protected methods | 35 | 7.90% |
▷ Private methods | 13 | 2.93% |
Functions | 178 | |
▷ Named functions | 39 | 21.91% |
▷ Anonymous functions | 139 | 78.09% |
Constants | 11 | |
▷ Global constants | 2 | 18.18% |
▷ Class constants | 9 | 81.82% |
▷ Public constants | 9 | 100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/maan-icon.png | 2.46KB | 2.12KB | ▼ 13.70% |