Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.55MB] [CPU: ▼18.81ms] Passed 4 tests
Analyzing server-side resources used by Laika Pedigree Tree
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 38.48 ▼4.91 |
Dashboard /wp-admin | 3.44 ▲0.13 | 49.76 ▼5.65 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 50.25 ▼0.27 |
Add New Post /wp-admin/post-new.php | 3.28 ▼2.60 | 37.71 ▼64.42 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 38.65 ▲5.68 |
Laika Fields Configuration /wp-admin/options-general.php?page=laika-fields | 3.32 | 32.31 |
Add New /wp-admin/post-new.php?post_type=laika_pt_type | 3.28 | 36.62 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=laika_pt_type | 3.35 | 38.41 |
Laika Configuration /wp-admin/options-general.php?page=laika-options | 3.33 | 35.39 |
Laika /wp-admin/edit.php?post_type=laika_pt_type | 3.41 | 38.70 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Laika Pedigree Tree: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 13.94 ▼0.41 | 1.68 ▼0.13 | 42.27 ▼3.42 |
Dashboard /wp-admin | 2,221 ▲47 | 5.57 ▲0.04 | 92.81 ▼4.88 | 75.21 ▲27.99 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 1.96 ▼0.07 | 38.40 ▼1.51 | 34.05 ▼2.82 |
Add New Post /wp-admin/post-new.php | 1,576 ▲48 | 22.97 ▲0.15 | 650.27 ▲2.06 | 180.60 ▲130.64 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.19 ▼0.04 | 99.71 ▼3.96 | 77.76 ▲33.65 |
Laika Fields Configuration /wp-admin/options-general.php?page=laika-fields | 884 | 1.96 | 34.43 | 31.97 |
Add New /wp-admin/post-new.php?post_type=laika_pt_type | 2,406 | 7.65 | 173.72 | 121.31 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=laika_pt_type | 1,354 | 2.12 | 28.30 | 37.76 |
Laika Configuration /wp-admin/options-general.php?page=laika-options | 973 | 2.03 | 24.55 | 30.66 |
Laika /wp-admin/edit.php?post_type=laika_pt_type | 1,116 | 1.87 | 32.40 | 30.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=laika_pt_type
- > Notice in wp-content/plugins/laika-pedigree-tree/laika-core/customtype.php+142
Undefined index: FIELD_NONB
- > GET request to /wp-admin/post-new.php?post_type=laika_pt_type
- > Notice in wp-content/plugins/laika-pedigree-tree/laika-core/customtype.php+97
Undefined variable: laika_id_loop
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=laika_pt_type
- > Warning in wp-content/plugins/laika-pedigree-tree/laika-core/customtype-fields.php+125
sizeof(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/post-new.php?post_type=laika_pt_type
- > Notice in wp-content/plugins/laika-pedigree-tree/laika-core/customtype-fields.php+105
Undefined variable: laika_id_loop_f
- > GET request to /wp-admin/post-new.php?post_type=laika_pt_type
- > Notice in wp-content/plugins/laika-pedigree-tree/laika-core/customtype-fields.php+125
Undefined variable: laika_id_loop_m
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=laika_pt_type
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/laika-pedigree-tree/laika-core/customtype-fields.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/laika-pedigree-tree/laika-core/customtype-display-fields.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: dog, pedigree, laika, family, pets...
laika-pedigree-tree/laika-pedigree-tree.php Passed 13 tests
"Laika Pedigree Tree" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
21 characters long description:
Draws a pedigree tree
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,792 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 308 | 62 | 1,328 |
CSS | 2 | 46 | 11 | 246 |
PO File | 2 | 68 | 70 | 168 |
JavaScript | 1 | 14 | 2 | 50 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 12.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 5.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 0.55KB | 0.33KB | ▼ 38.75% |
images/cross.png | 0.25KB | 0.11KB | ▼ 57.20% |