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.00MB] [CPU: ▼4.34ms] Passed 4 tests
An overview of server-side resources used by HametuPack
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 38.61 ▲4.37 |
Dashboard /wp-admin | 3.32 ▼0.03 | 43.05 ▼13.34 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.87 ▼1.73 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.99 ▼2.58 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.22 ▲0.30 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for HametuPack
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 13.29 ▼1.36 | 4.48 ▲2.65 | 44.60 ▲3.70 |
Dashboard /wp-admin | 2,213 ▲28 | 5.81 ▼0.01 | 100.40 ▼4.55 | 40.64 ▼4.43 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.02 ▲0.05 | 40.21 ▲1.00 | 35.89 ▼2.55 |
Add New Post /wp-admin/post-new.php | 1,540 ▲21 | 23.16 ▼0.08 | 601.87 ▼51.21 | 62.78 ▼3.84 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.21 ▲0.03 | 96.37 ▼2.20 | 42.83 ▲2.06 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following items
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Hametuha\\HametuPack\\ShareDaddy\\AbstractShare' not found in wp-content/plugins/hametupack/app/Hametuha/HametuPack/ShareDaddy/ShareHatebu.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hametupack/includes/ogp.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hametupack/includes/amp.php:16
- > PHP Fatal error
Uncaught Error: Class 'Hametuha\\HametuPack\\OGP\\TwitterCard' not found in wp-content/plugins/hametupack/template-parts/player-card-audio.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hametupack/includes/sharedaddy.php:14
- > PHP Fatal error
Uncaught Error: Class 'Hametuha\\HametuPack\\ShareDaddy\\AbstractShare' not found in wp-content/plugins/hametupack/app/Hametuha/HametuPack/ShareDaddy/ShareLine.php:11
- > PHP Fatal error
Uncaught Error: Class 'Sharing_Source' not found in wp-content/plugins/hametupack/app/Hametuha/HametuPack/ShareDaddy/AbstractShare.php:10
- > PHP Fatal error
Uncaught Error: Class 'Hametuha\\HametuPack\\OGP\\TwitterCard' not found in wp-content/plugins/hametupack/template-parts/player-card-video.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 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
4 plugin tags: line, japan, jetpack, hatena
hametupack/hametupack.php Passed 13 tests
The main file in "HametuPack" v. 1.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
47 characters long description:
This plugin add small functionality to Jetpack.
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
There were no executable files found in this plugin1,173 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 156 | 417 | 850 |
JavaScript | 1 | 17 | 16 | 88 |
PO File | 1 | 24 | 27 | 86 |
Sass | 1 | 6 | 2 | 56 |
Markdown | 1 | 30 | 0 | 47 |
SVG | 3 | 0 | 0 | 44 |
CSS | 1 | 1 | 1 | 1 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 13.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 4 | 8.89% |
▷ Public methods | 41 | 91.11% |
▷ Protected methods | 2 | 4.44% |
▷ Private methods | 2 | 4.44% |
Functions | 27 | |
▷ Named functions | 6 | 22.22% |
▷ Anonymous functions | 21 | 77.78% |
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
There were not PNG files found in your plugin