Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.74MB] [CPU: ▲14.70ms] Passed 4 tests
Analyzing server-side resources used by Acnoo Flutter API
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.23 ▲2.77 | 62.14 ▲21.44 |
Dashboard /wp-admin | 6.07 ▲2.72 | 70.81 ▲1.74 |
Posts /wp-admin/edit.php | 6.12 ▲2.76 | 68.17 ▲21.73 |
Add New Post /wp-admin/post-new.php | 8.92 ▲3.04 | 112.82 ▲13.87 |
Media Library /wp-admin/upload.php | 5.93 ▲2.70 | 62.23 ▲29.32 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 8 new options
New WordPress options |
---|
maanstore_purchase_code |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
afa_elements |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Acnoo Flutter API
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲37 | 14.35 ▼0.03 | 1.73 ▼0.29 | 41.99 ▼1.82 |
Dashboard /wp-admin | 2,217 ▲43 | 5.64 ▲0.06 | 86.66 ▼17.95 | 37.85 ▼9.57 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.01 ▲0.00 | 39.94 ▲2.09 | 35.60 ▲2.65 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 22.80 ▼0.26 | 633.22 ▲13.53 | 62.38 ▲12.37 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.21 ▲0.05 | 102.94 ▼2.57 | 40.77 ▼7.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- afa_elements
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- maanstore_purchase_code
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/acnoo-flutter-api/includes/flutter-api/templates/admin/afa-user-config.php
- 33× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/acnoo-flutter-api/includes/flutter-api/templates/admin/afa-admin-navigation.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/acnoo-flutter-api/includes/flutter-api/templates/afa-admin-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acnoo-flutter-api/includes/flutter-api/controllers/flutter-booking.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/acnoo-flutter-api/includes/flutter-api/templates/admin/afa-admin-activation.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/acnoo-flutter-api/includes/flutter-api/maan-flutter-config.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acnoo-flutter-api/includes/flutter-api/controllers/flutter-midtrans.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acnoo-flutter-api/includes/flutter-api/controllers/flutter-blog.php:23
- > PHP Fatal error
Uncaught Error: Class 'WC_REST_Products_Controller' not found in wp-content/plugins/acnoo-flutter-api/includes/flutter-api/controllers/flutter-products.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acnoo-flutter-api/includes/flutter-api/controllers/flutter-myfatoorah.php:27
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Posts_Controller' not found in wp-content/plugins/acnoo-flutter-api/includes/flutter-api/controllers/listing-rest-api/class.api.fields.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: android, rest, maanstore, api, react-native...
acnoo-flutter-api/acnoo-flutter-api.php Passed 13 tests
The principal PHP file in "Acnoo Flutter API" v. 1.0.5 is loaded by WordPress automatically on each request
103 characters long description:
The Acnoo Flutter API Plugin which is used for REST API configurations of mobile apps created by Acnoo.
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 detected20,729 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 50 | 2,671 | 2,064 | 20,344 |
CSS | 2 | 26 | 1 | 209 |
JavaScript | 1 | 11 | 0 | 176 |
PHP code Passed 2 tests
An overview 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.39 |
Average class complexity | 69.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 396.00 |
Average method complexity | 6.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 39 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 471 | |
▷ Static methods | 11 | 2.34% |
▷ Public methods | 419 | 88.96% |
▷ Protected methods | 35 | 7.43% |
▷ Private methods | 17 | 3.61% |
Functions | 190 | |
▷ Named functions | 44 | 23.16% |
▷ Anonymous functions | 146 | 76.84% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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% |