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 gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼11.02ms] Passed 4 tests
Server-side resources used by Ghost Importer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.88 ▼2.55 |
Dashboard /wp-admin | 3.37 ▲0.02 | 49.22 ▼15.27 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 49.91 ▼3.64 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 86.55 ▼22.62 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.00 ▼1.57 |
Ghost Importer /wp-admin/tools.php?page=ghost_importer | 3.26 | 30.87 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_ghostimporter_log |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Ghost Importer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.34 ▼0.04 | 1.77 ▼0.42 | 39.29 ▼1.63 |
Dashboard /wp-admin | 2,196 ▲15 | 5.50 ▼0.23 | 89.15 ▼13.65 | 39.32 ▼3.46 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.99 ▲0.03 | 40.48 ▲2.77 | 36.34 ▲2.12 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.04 ▼0.27 | 663.45 ▼18.88 | 49.69 ▼11.49 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.14 ▼0.02 | 98.36 ▼4.35 | 42.68 ▲0.80 |
Ghost Importer /wp-admin/tools.php?page=ghost_importer | 811 | 2.00 | 25.34 | 32.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Contributors: Plugin contributors field is missing
import-from-ghost/ghost-importer.php 85% from 13 tests
The entry point to "Ghost Importer" version 0.1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("import-from-ghost.php" instead of "ghost-importer.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected305 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 49 | 29 | 261 |
JavaScript | 1 | 3 | 2 | 44 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 44.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 3 | 17.65% |
▷ Public methods | 10 | 58.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 41.18% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin