Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.30MB] [CPU: ▼16.13ms] Passed 4 tests
A check of server-side resources used by MB Rest API
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 40.71 ▼3.60 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.32 ▼1.84 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 50.36 ▲0.80 |
Add New Post /wp-admin/post-new.php | 4.63 ▼1.26 | 45.87 ▼59.89 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.80 ▲2.98 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for MB Rest API
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.03 | 1.64 ▼0.35 | 42.90 ▼1.40 |
Dashboard /wp-admin | 2,189 ▲12 | 5.52 ▼0.14 | 89.80 ▲5.14 | 43.64 ▲1.01 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▼0.06 | 37.12 ▲3.32 | 34.84 ▲0.21 |
Add New Post /wp-admin/post-new.php | 45 ▼1,481 | 0.42 ▼22.65 | 0.07 ▼649.93 | 8.71 ▼51.05 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.18 ▼0.04 | 105.27 ▼3.59 | 68.58 ▲23.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- recovery_mode_email_last_sent
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'MetaBox\\RestApi\\Base' not found in wp-content/plugins/mb-rest-api/src/Term.php:6
- > PHP Fatal error
Uncaught Error: Class 'MetaBox\\RestApi\\Base' not found in wp-content/plugins/mb-rest-api/src/Comment.php:6
- > PHP Fatal error
Uncaught Error: Class 'MetaBox\\RestApi\\Base' not found in wp-content/plugins/mb-rest-api/src/Post.php:6
- > PHP Fatal error
Uncaught Error: Class 'MetaBox\\RestApi\\Base' not found in wp-content/plugins/mb-rest-api/src/User.php:6
- > PHP Fatal error
Uncaught Error: Class 'MetaBox\\RestApi\\Base' not found in wp-content/plugins/mb-rest-api/src/Setting.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
mb-rest-api/mb-rest-api.php 92% from 13 tests
This is the main PHP file of "MB Rest API" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages/")
Code Analysis Passed 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 plugin817 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 196 | 402 | 812 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 12.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 19 | 29.23% |
▷ Public methods | 49 | 75.38% |
▷ Protected methods | 8 | 12.31% |
▷ Private methods | 8 | 12.31% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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
There are no PNG files in this plugin