Benchmarks
Plugin footprint Passed 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.89MB] [CPU: ▼283.36ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Exporter Importer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.49 ▲0.98 | 60.48 ▲13.38 |
Dashboard /wp-admin | 4.33 ▲0.92 | 37.95 ▲4.98 |
Posts /wp-admin/edit.php | 4.55 ▲0.91 | 47.23 ▲11.20 |
Add New Post /wp-admin/post-new.php | 7.80 ▲0.83 | 101.94 ▼1,154.32 |
Media Library /wp-admin/upload.php | 4.20 ▲0.91 | 31.94 ▲4.71 |
Advanced Exporter Importer /wp-admin/tools.php?page=gpls-cpt-exporter-importer | 4.25 | 32.43 |
Server storage [IO: ▲1.32MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 55 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Exporter Importer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,793 ▲49 | 16.22 ▲0.57 | 6.67 ▲0.33 | 2.21 ▼0.38 |
Dashboard /wp-admin | 2,902 ▲48 | 6.13 ▼0.11 | 116.55 ▼15.71 | 155.63 ▼4.95 |
Posts /wp-admin/edit.php | 2,701 ▲10 | 3.24 ▲0.00 | 63.52 ▲1.03 | 146.85 ▲2.07 |
Add New Post /wp-admin/post-new.php | 1,672 ▼39 | 20.59 ▼0.92 | 438.16 ▲4.51 | 158.26 ▲4.01 |
Media Library /wp-admin/upload.php | 1,709 ▲8 | 5.58 ▲0.08 | 139.82 ▼7.19 | 195.10 ▲5.98 |
Advanced Exporter Importer /wp-admin/tools.php?page=gpls-cpt-exporter-importer | 3,117 | 3.72 | 78.00 | 181.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 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
8 plugin tags: import, export, zip, media, custom post type...
advanced-exporter-importer/gpls-cpt-exporter-importer.php 69% from 13 tests
"Advanced Exporter Importer" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 272 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires PHP: Required version does not match the one declared in readme.txt ("5.4" instead of "5.6")
- Main file name: Name the main plugin file the same as the plugin slug ("advanced-exporter-importer.php" instead of "gpls-cpt-exporter-importer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin6,091 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 1,142 | 1,915 | 5,177 |
PO File | 1 | 190 | 216 | 467 |
JavaScript | 7 | 69 | 67 | 403 |
Sass | 1 | 5 | 0 | 40 |
CSS | 3 | 0 | 6 | 3 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 64.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 310.00 |
Average method complexity | 4.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 216 | |
▷ Static methods | 11 | 5.09% |
▷ Public methods | 203 | 93.98% |
▷ Protected methods | 1 | 0.46% |
▷ Private methods | 12 | 5.56% |
Functions | 7 | |
▷ Named functions | 1 | 14.29% |
▷ Anonymous functions | 6 | 85.71% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/assets/dist/images/logo-icon-lg.png | 3.56KB | 2.72KB | ▼ 23.62% |
core/assets/src/images/logo-icon-sm.png | 1.46KB | 0.72KB | ▼ 50.40% |
core/assets/dist/images/logo-icon-md.png | 0.91KB | 0.96KB | 0.00% |
core/assets/dist/images/logo-icon-sm.png | 0.62KB | 0.72KB | 0.00% |
assets/src/images/sc.png | 5.93KB | 2.93KB | ▼ 50.54% |