Benchmarks
Plugin footprint Passed 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼295.83ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Import : One Click Import for WordPress or Theme Demo Data
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.11 | 53.99 ▼8.39 |
Dashboard /wp-admin | 3.46 ▲0.06 | 34.49 ▼8.32 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 52.64 ▲10.71 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 93.87 ▼1,161.46 |
Media Library /wp-admin/upload.php | 3.35 ▲0.06 | 24.37 ▼5.15 |
Advanced Import /wp-admin/tools.php?page=advanced-import-tool | 3.36 | 35.47 |
Demo Import /wp-admin/themes.php?page=advanced-import | 3.36 | 28.06 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Import : One Click Import for WordPress or Theme Demo Data
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,773 ▲51 | 15.32 ▼0.70 | 5.46 ▼0.44 | 2.01 ▼0.36 |
Dashboard /wp-admin | 2,898 ▲47 | 6.12 ▼0.01 | 118.86 ▼17.41 | 152.88 ▼42.13 |
Posts /wp-admin/edit.php | 2,701 ▲7 | 3.24 ▲0.00 | 87.00 ▲20.76 | 147.56 ▼3.94 |
Add New Post /wp-admin/post-new.php | 1,696 ▲35 | 21.26 ▲5.59 | 444.82 ▼5.83 | 177.72 ▲15.24 |
Media Library /wp-admin/upload.php | 1,708 ▲7 | 5.53 ▼0.06 | 153.42 ▼8.98 | 195.63 ▼12.19 |
Advanced Import /wp-admin/tools.php?page=advanced-import-tool | 1,502 | 5.27 | 77.09 | 127.05 |
Demo Import /wp-admin/themes.php?page=advanced-import | 1,507 | 5.03 | 77.81 | 128.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/advanced-import/advanced-import.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-import/example.php:83
- > 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
6 plugin tags: demo import, theme import, widget import, advanced import, import...
advanced-import/advanced-import.php Passed 13 tests
"Advanced Import : One Click Import for WordPress or Theme Demo Data" version 1.3.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
71 characters long description:
Easily import demo data starter site packages or Migrate your site data
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected4,495 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 469 | 1,124 | 2,420 |
JavaScript | 4 | 507 | 226 | 2,074 |
CSS | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 112)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 390.00 |
Average method complexity | 6.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 112.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 8 | 10.26% |
▷ Public methods | 61 | 78.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 21.79% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin