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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.77MB] [CPU: ▼136.09ms] Passed 4 tests
Server-side resources used by REST Importer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.81 | 41.75 ▲16.83 |
Dashboard /wp-admin | 3.82 ▲0.76 | 54.05 ▲5.21 |
Posts /wp-admin/edit.php | 3.93 ▲0.82 | 53.80 ▲10.28 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.74 | 100.83 ▼567.97 |
Media Library /wp-admin/upload.php | 3.76 ▲0.76 | 41.85 ▲8.12 |
REST Importer /wp-admin/tools.php?page=remp_options | 4.19 | 41.55 |
Server storage [IO: ▲4.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 594 new files
Database: no new tables, 1 new option
New WordPress options |
---|
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
A check of browser resources used by REST Importer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,710 ▲114 | 15.84 ▲0.52 | 9.35 ▲1.22 | 49.76 ▼1.87 |
Dashboard /wp-admin | 2,977 ▲43 | 5.85 ▼0.07 | 146.74 ▲2.78 | 114.92 ▼4.04 |
Posts /wp-admin/edit.php | 2,746 ▲7 | 2.69 ▲0.00 | 69.46 ▼9.61 | 95.79 ▼4.49 |
Add New Post /wp-admin/post-new.php | 1,620 ▼63 | 21.39 ▲2.59 | 273.93 ▼110.58 | 114.10 ▲2.51 |
Media Library /wp-admin/upload.php | 1,814 ▲4 | 5.04 ▲0.01 | 149.26 ▼7.78 | 117.18 ▼9.94 |
REST Importer /wp-admin/tools.php?page=remp_options | 1,066 | 2.11 | 41.68 | 70.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- recovery_mode_email_last_sent
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/tools.php?page=remp_options
- > Error in wp-content/plugins/rest-importer/includes/jhotadhari/cmb2_field_type_crypt/cmb2_field_type_crypt.php+117
Uncaught Error: Call to undefined function mcrypt_get_iv_size() in wp-content/plugins/rest-importer/includes/jhotadhari/cmb2_field_type_crypt/cmb2_field_type_crypt.php:117
Stack trace:
#0 wp-content/plugins/rest-importer/includes/jhotadhari/cmb2_field_type_crypt/cmb2_field_type_crypt.php(39): cmb2_crypt_decrypt()
#1 wp-includes/class-wp-hook.php(303): cmb2_crypt_render_callback()
#2 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(470): WP_Hook->do_action()
#4 wp-content/plugins/rest-importer/includes/webdevstudios/cmb2/includes/CMB2_Types.php(80): do_action()
#5 wp-content/plugins/rest-importer/includes/webdevstudios/cmb2/includes/CMB2_Types.php(101): CMB2_Types->__call()
#6 wp-content/plugins/rest-importer/includes/webdevstudios/cmb2/includes/CMB2_Types.php(91): CMB2_Types->_render()
#7 wp-content/plug
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 take a closer look at the following
- 127× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/rest-importer/includes/webdevstudios/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/rest-importer/includes/webdevstudios/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/rest-importer/includes/webdevstudios/cmb2/includes/types/CMB2_Type_Text_Time.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/rest-importer/includes/webdevstudios/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rest-importer/includes/composer/installers/src/Composer/Installers/FuelInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rest-importer/includes/composer/installers/src/Composer/Installers/HuradInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rest-importer/includes/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rest-importer/includes/composer/installers/src/Composer/Installers/PhiftyInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rest-importer/includes/composer/installers/src/Composer/Installers/ZikulaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/rest-importer/includes/composer/installers/tests/Composer/Installers/Test/GravInstallerTest.php:7
- > 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 93% from 29 tests
readme.txt Passed 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
4 plugin tags: import, rest, json, remote
rest-importer/rest-importer.php 85% from 13 tests
The main PHP script in "REST Importer" version 0.1.5 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected73,260 lines of code in 420 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 13,782 | 17,882 | 31,544 |
JavaScript | 35 | 1,058 | 5,449 | 16,748 |
PHP | 166 | 3,148 | 6,576 | 11,390 |
CSS | 20 | 1,159 | 1,192 | 7,168 |
HTML | 27 | 157 | 3 | 2,325 |
Markdown | 12 | 518 | 0 | 1,677 |
Sass | 14 | 265 | 25 | 1,262 |
JSON | 16 | 0 | 0 | 754 |
LESS | 6 | 39 | 24 | 350 |
XML | 3 | 6 | 2 | 38 |
Bourne Again Shell | 1 | 4 | 5 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 9.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 175 | |
▷ Abstract classes | 12 | 6.86% |
▷ Concrete classes | 163 | 93.14% |
▷ Final classes | 0 | 0.00% |
Methods | 714 | |
▷ Static methods | 93 | 13.03% |
▷ Public methods | 571 | 79.97% |
▷ Protected methods | 125 | 17.51% |
▷ Private methods | 18 | 2.52% |
Functions | 81 | |
▷ Named functions | 73 | 90.12% |
▷ Anonymous functions | 8 | 9.88% |
Constants | 16 | |
▷ Global constants | 4 | 25.00% |
▷ Class constants | 12 | 75.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
26 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/vakata/jstree/src/themes/default/40px.png | 5.91KB | 1.84KB | ▼ 68.95% |
includes/webdevstudios/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
includes/vakata/jstree/test/visual/screenshots/desktop/desktop.png | 18.86KB | 6.92KB | ▼ 63.31% |
includes/vakata/jstree/test/visual/screenshots/mobile/home.png | 6.22KB | 3.41KB | ▼ 45.16% |
includes/vakata/jstree/test/visual/screenshots/desktop/home.png | 10.39KB | 4.40KB | ▼ 57.63% |