Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.92MB] [CPU: ▲4.84ms] Passed 4 tests
Server-side resources used by Advanced Exporter Importer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.39 ▲0.93 | 45.62 ▲4.31 |
Dashboard /wp-admin | 4.21 ▲0.91 | 56.24 ▲10.65 |
Posts /wp-admin/edit.php | 4.32 ▲0.97 | 53.59 ▲5.97 |
Add New Post /wp-admin/post-new.php | 6.81 ▲0.93 | 93.26 ▲0.71 |
Media Library /wp-admin/upload.php | 4.13 ▲0.91 | 41.31 ▲8.35 |
Advanced Exporter Importer /wp-admin/tools.php?page=gpls-cpt-exporter-importer | 4.16 | 42.53 |
Server storage [IO: ▲1.32MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Exporter Importer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲74 | 13.35 ▼1.04 | 5.18 ▲3.21 | 41.94 ▼8.23 |
Dashboard /wp-admin | 2,215 ▲27 | 4.91 ▲0.02 | 103.66 ▼7.82 | 36.19 ▼10.63 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.05 ▲0.06 | 35.28 ▼0.84 | 32.76 ▼3.35 |
Add New Post /wp-admin/post-new.php | 1,521 ▲2 | 23.20 ▼0.03 | 667.37 ▼34.45 | 53.28 ▼1.46 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.27 ▼0.03 | 101.78 ▲1.50 | 41.88 ▼5.53 |
Advanced Exporter Importer /wp-admin/tools.php?page=gpls-cpt-exporter-importer | 2,092 | 2.51 | 46.11 | 62.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: media, cpt, custom post type, zip, export...
advanced-exporter-importer/gpls-cpt-exporter-importer.php 69% from 13 tests
The main file in "Advanced Exporter Importer" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 272 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-exporter-importer.php" instead of "gpls-cpt-exporter-importer.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires PHP: Required version must match the one declared in readme.txt ("5.4" instead of "5.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected6,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
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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
PNG files should be compressed to save space and 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 |
assets/dist/images/sc.png | 3.41KB | 2.93KB | ▼ 14.08% |
assets/src/images/sc.png | 5.93KB | 2.93KB | ▼ 50.54% |
core/assets/dist/images/logo-icon-md.png | 0.91KB | 0.96KB | 0.00% |
core/assets/src/images/logo-icon-lg.png | 5.07KB | 2.72KB | ▼ 46.47% |
core/assets/src/images/logo-icon-sm.png | 1.46KB | 0.72KB | ▼ 50.40% |