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
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼143.80ms] Passed 4 tests
A check of server-side resources used by Pz-HatenaBlogCard
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.22 | 36.90 ▲13.43 |
Dashboard /wp-admin | 3.16 ▲0.11 | 45.53 ▼5.26 |
Posts /wp-admin/edit.php | 3.21 ▲0.10 | 44.88 ▼10.87 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.08 | 91.72 ▼562.91 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 35.21 ▲3.86 |
HatenaBlogCard /wp-admin/options-general.php?page=Pz_HatenaBlogCard_settings | 3.52 | 30.07 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 1 new option
New WordPress options |
---|
Pz_HatenaBlogCard_options |
Browser metrics Passed 4 tests
A check of browser resources used by Pz-HatenaBlogCard
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,738 ▲142 | 16.08 ▲0.21 | 7.65 ▼1.41 | 50.13 ▲3.72 |
Dashboard /wp-admin | 3,000 ▲66 | 6.49 ▲0.35 | 140.97 ▼9.52 | 110.41 ▼9.66 |
Posts /wp-admin/edit.php | 2,775 ▲36 | 2.75 ▲0.05 | 66.14 ▼10.79 | 113.50 ▲12.07 |
Add New Post /wp-admin/post-new.php | 1,630 ▼53 | 17.76 ▼1.07 | 346.26 ▼14.02 | 104.43 ▼8.69 |
Media Library /wp-admin/upload.php | 1,843 ▲33 | 5.41 ▲0.38 | 128.43 ▼17.00 | 119.59 ▼4.53 |
HatenaBlogCard /wp-admin/options-general.php?page=Pz_HatenaBlogCard_settings | 4,703 | 3.16 | 113.10 | 111.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pz-hatenablogcard/pz-hatenablogcard.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pz-hatenablogcard/pz-hatenablogcard-options.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pz-hatenablogcard/pz-hatenablogcard-style.php:2
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 ("Use shortcode [blogcard]"), #2 ("Display blogcard"), #3 ("Display blogcard with settings"), #4 ("Basic settings"), #5 ("Style settings"), #6 ("Letters settings"), #7 ("External link settings"), #8 ("Internal link settings"), #9 ("Use WebAPI settings"), #10 ("For debug settings"), #11 ("Initializing settings"), #12 ("Special format 'Celophane tape'")
pz-hatenablogcard/pz-hatenablogcard.php Passed 13 tests
"Pz-HatenaBlogCard" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
66 characters long description:
リンクを「はてなブログカード」で表示します。
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin1,649 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 105 | 63 | 1,310 |
PO File | 1 | 183 | 249 | 338 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 112.00 |
▷ Minimum class complexity | 112.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 13.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.24MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 33.14KB | 15.10KB | ▼ 54.45% |
screenshot-1.png | 10.85KB | 7.57KB | ▼ 30.28% |
screenshot-10.png | 41.44KB | 21.12KB | ▼ 49.03% |
screenshot-3.png | 23.74KB | 10.40KB | ▼ 56.17% |
screenshot-7.png | 30.50KB | 15.50KB | ▼ 49.20% |