Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.33ms] Passed 4 tests
This is a short check of server-side resources used by Ghost
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.21 ▼1.79 |
Dashboard /wp-admin | 3.40 ▲0.09 | 47.34 ▼4.86 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 45.16 ▼0.48 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 82.33 ▼6.19 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.61 ▲1.25 |
Export to Ghost /wp-admin/tools.php?page=ghost | 3.29 | 35.19 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Ghost
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.07 ▼0.28 | 1.78 ▲0.06 | 40.23 ▼5.65 |
Dashboard /wp-admin | 2,199 ▲19 | 5.62 ▲0.02 | 89.81 ▼3.47 | 39.37 ▼0.20 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.01 | 35.27 ▼4.39 | 34.07 ▼2.17 |
Add New Post /wp-admin/post-new.php | 1,529 ▼7 | 23.17 ▼0.02 | 598.14 ▼100.28 | 50.99 ▼3.68 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▼0.00 | 98.67 ▼8.92 | 41.07 ▼4.74 |
Export to Ghost /wp-admin/tools.php?page=ghost | 906 | 2.09 | 26.15 | 38.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ghost/views/public.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ghost/views/admin.php:18
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: export, publishing, ghost, migrate, blogging
ghost/ghost.php 92% from 13 tests
The principal PHP file in "Ghost" v. 1.4.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected500 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 127 | 301 | 462 |
CSS | 2 | 5 | 2 | 38 |
JavaScript | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
This is a short overview 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.27 |
Average class complexity | 51.00 |
▷ Minimum class complexity | 51.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 30 | |
▷ Static methods | 3 | 10.00% |
▷ Public methods | 17 | 56.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 43.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.55MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 33.40KB | 15.33KB | ▼ 54.09% |
assets/banner-772x250.png | 12.36KB | 5.78KB | ▼ 53.22% |
assets/icon-256x256.png | 77.53KB | 32.36KB | ▼ 58.26% |
assets/logo.png | 199.72KB | 67.29KB | ▼ 66.31% |
assets/icon-128x128.png | 23.64KB | 10.69KB | ▼ 54.77% |