Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.20ms] Passed 4 tests
An overview of server-side resources used by REST API | Custom API Generator For Cross Platform And Import Export In WP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.47 ▼2.52 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.48 ▼0.49 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 44.64 ▼0.68 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 85.18 ▼11.19 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.96 ▼2.40 |
Export settings /wp-admin/admin.php?page=rapi-settings | 3.29 | 31.05 |
Import settings /wp-admin/admin.php?page=import-settings | 3.25 | 31.28 |
Check API /wp-admin/admin.php?page=show-all-api | 3.27 | 30.61 |
Server storage [IO: ▲0.11MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: 1 new table, 6 new options
New tables |
---|
wot_rapi_settings |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by REST API | Custom API Generator For Cross Platform And Import Export In WP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲89 | 13.24 ▼1.02 | 4.49 ▲2.31 | 42.07 ▲0.02 |
Dashboard /wp-admin | 2,244 ▲56 | 4.87 ▼1.09 | 102.06 ▼14.95 | 40.63 ▼3.15 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.05 ▲0.02 | 36.36 ▼1.20 | 33.45 ▼2.69 |
Add New Post /wp-admin/post-new.php | 1,552 ▲17 | 18.13 ▼4.96 | 606.25 ▼68.34 | 73.34 ▲8.78 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.22 ▲0.04 | 100.59 ▼0.81 | 43.71 ▲2.54 |
Export settings /wp-admin/admin.php?page=rapi-settings | 1,231 | 1.73 | 25.58 | 33.06 |
Import settings /wp-admin/admin.php?page=import-settings | 815 | 2.05 | 24.10 | 30.29 |
Check API /wp-admin/admin.php?page=show-all-api | 808 | 2.08 | 28.28 | 27.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/import-export-with-custom-rest-api/backend/wp-background-processing-master/classes/wp-background-process.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/import-export-with-custom-rest-api/backend/wp-background-processing-master/wp-background-processing.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
Please fix the following attributes:
- Requires at least: The plugin version is formatted incorrectly
import-export-with-custom-rest-api/import-export-with-custom-rest-api.php 92% from 13 tests
The entry point to "REST API | Custom API Generator For Cross Platform And Import Export In WP" version 2.0.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Plugin Name: Please don't use more than 70 characters for the plugin name (currently 74 characters long)
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
There were no executable files found in this plugin1,940 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 408 | 913 | 1,722 |
Markdown | 1 | 60 | 0 | 112 |
CSS | 1 | 1 | 1 | 49 |
JavaScript | 1 | 6 | 0 | 31 |
JSON | 2 | 0 | 0 | 26 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 18.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 8 | |
▷ Abstract classes | 2 | 25.00% |
▷ Concrete classes | 6 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 18 | 22.22% |
▷ Public methods | 57 | 70.37% |
▷ Protected methods | 22 | 27.16% |
▷ Private methods | 2 | 2.47% |
Functions | 19 | |
▷ Named functions | 18 | 94.74% |
▷ Anonymous functions | 1 | 5.26% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin