Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.66MB] [CPU: ▲0.12ms] 75% from 4 tests
This is a short check of server-side resources used by TreePress - Easy Family Trees & Ancestor Profiles
It is recommended to improve the following
- CPU: Total CPU usage must kept under 500.00ms (currently 2,117.66ms on /wp-admin/admin.php?page=treepress-account-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.70 | 41.91 ▼2.17 |
Dashboard /wp-admin | 4.01 ▲0.70 | 51.56 ▼3.94 |
Posts /wp-admin/edit.php | 4.06 ▲0.70 | 53.18 ▲7.37 |
Add New Post /wp-admin/post-new.php | 6.72 ▲0.83 | 97.24 ▼0.78 |
Media Library /wp-admin/upload.php | 3.77 ▲0.54 | 42.70 ▲7.72 |
Options /wp-admin/admin.php?page=treepress-options | 3.80 | 38.73 |
Account Settings /wp-admin/admin.php?page=treepress-account-settings | 4.01 | 2,117.66 |
All Members /wp-admin/edit.php?post_type=member | 3.97 | 42.89 |
Family Groups /wp-admin/edit-tags.php?taxonomy=family-group&post_type=member | 3.93 | 39.61 |
Add Family /wp-admin/post-new.php?post_type=family | 4.15 | 58.10 |
Add Member /wp-admin/post-new.php?post_type=member | 4.42 | 52.11 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 4.09 | 40.66 |
All Charts /wp-admin/edit.php?post_type=chart | 3.97 | 45.87 |
All Families /wp-admin/edit.php?post_type=family | 3.97 | 39.55 |
Add Chart /wp-admin/post-new.php?post_type=chart | 4.40 | 56.16 |
Server storage [IO: ▲5.80MB] [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: 518 new files
Database: no new tables, 11 new options
New WordPress options |
---|
fs_active_plugins |
fs_accounts |
theysaidso_admin_options |
fs_debug_mode |
db_upgraded |
widget_recent-posts |
treepress_activatation_time |
treepress_version |
widget_theysaidso_widget |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TreePress - Easy Family Trees & Ancestor Profiles
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,012 ▲251 | 14.08 ▼0.27 | 7.67 ▲5.93 | 30.18 ▼13.27 |
Dashboard /wp-admin | 2,293 ▲113 | 5.14 ▼0.53 | 106.21 ▲8.41 | 46.52 ▲4.55 |
Posts /wp-admin/edit.php | 2,204 ▲107 | 2.50 ▲0.52 | 37.88 ▲2.30 | 33.70 ▼8.53 |
Add New Post /wp-admin/post-new.php | 1,604 ▲78 | 23.52 ▲0.61 | 722.53 ▲31.10 | 37.29 ▼19.86 |
Media Library /wp-admin/upload.php | 1,495 ▲98 | 4.70 ▲0.40 | 98.11 ▼14.17 | 42.64 ▲0.35 |
Options /wp-admin/admin.php?page=treepress-options | 974 | 2.31 | 27.18 | 33.26 |
Account Settings /wp-admin/admin.php?page=treepress-account-settings | 1,066 | 2.38 | 29.73 | 59.76 |
All Members /wp-admin/edit.php?post_type=member | 1,214 | 2.57 | 35.56 | 31.74 |
Family Groups /wp-admin/edit-tags.php?taxonomy=family-group&post_type=member | 1,391 | 2.44 | 32.31 | 35.41 |
Add Family /wp-admin/post-new.php?post_type=family | 2,563 | 4.30 | 104.42 | 42.99 |
Add Member /wp-admin/post-new.php?post_type=member | 2,263 | 3.32 | 76.62 | 40.30 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,164 | 2.30 | 29.89 | 27.29 |
All Charts /wp-admin/edit.php?post_type=chart | 1,217 | 2.45 | 34.81 | 30.99 |
All Families /wp-admin/edit.php?post_type=family | 1,193 | 2.45 | 34.57 | 29.33 |
Add Chart /wp-admin/post-new.php?post_type=chart | 3,725 | 4.30 | 76.81 | 52.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/treepress/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 11 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- fs_debug_mode
- fs_accounts
- theysaidso_admin_options
- widget_theysaidso_widget
- fs_active_plugins
- treepress_activatation_time
- db_upgraded
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/treepress/public/partials/treepress-public-display.php
- > /wp-content/plugins/treepress/admin/partials/treepress-admin-display.php
- 191× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpGedcom\\Parser\\Component' not found in wp-content/plugins/treepress/php-gedcom/library/PhpGedcom/Parser/Subn.php:22
- > PHP Fatal error
Uncaught Error: Class 'PhpGedcom\\Record\\Indi\\Lds' not found in wp-content/plugins/treepress/php-gedcom/library/PhpGedcom/Record/Indi/Slgc.php:21
- > PHP Fatal error
Uncaught Error: Class 'PhpGedcom\\Parser\\Indi\\Even' not found in wp-content/plugins/treepress/php-gedcom/library/PhpGedcom/Parser/Indi/Will.php:22
- > PHP Fatal error
Uncaught Error: Class 'PhpGedcom\\Record\\Indi\\Attr' not found in wp-content/plugins/treepress/php-gedcom/library/PhpGedcom/Record/Indi/Occu.php:21
- > PHP Fatal error
Uncaught Error: Class 'PhpGedcom\\Parser\\Fam\\Even' not found in wp-content/plugins/treepress/php-gedcom/library/PhpGedcom/Parser/Fam/Divf.php:22
- > PHP Fatal error
Uncaught Error: Class 'PhpGedcom\\Parser\\Component' not found in wp-content/plugins/treepress/php-gedcom/library/PhpGedcom/Parser/Repo.php:22
- > PHP Fatal error
Uncaught Error: Class 'PhpGedcom\\Parser\\Indi\\Even' not found in wp-content/plugins/treepress/php-gedcom/library/PhpGedcom/Parser/Indi/Ordn.php:22
- > PHP Fatal error
Uncaught Error: Class 'PhpGedcom\\Record\\Indi\\Attr' not found in wp-content/plugins/treepress/php-gedcom/library/PhpGedcom/Record/Indi/Nchi.php:21
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/treepress/php-gedcom/tests/library/Gedcom/ParserTest.php:24
- > PHP Fatal error
Uncaught Error: Class 'PhpGedcom\\Record' not found in wp-content/plugins/treepress/php-gedcom/library/PhpGedcom/Record/Refn.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: family history, genealogy, ftm, ancestry, family tree...
treepress/treepress.php Passed 13 tests
This is the main PHP file of "TreePress - Easy Family Trees & Ancestor Profiles" version 3.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin64,071 lines of code in 438 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 343 | 10,483 | 23,887 | 44,907 |
JavaScript | 71 | 2,770 | 869 | 16,264 |
CSS | 17 | 168 | 78 | 2,014 |
PO File | 1 | 315 | 342 | 777 |
Markdown | 2 | 20 | 0 | 57 |
JSON | 2 | 0 | 0 | 25 |
YAML | 1 | 4 | 0 | 19 |
XML | 1 | 0 | 0 | 8 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 22.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 255 | |
▷ Abstract classes | 7 | 2.75% |
▷ Concrete classes | 248 | 97.25% |
▷ Final classes | 0 | 0.00% |
Methods | 1,788 | |
▷ Static methods | 274 | 15.32% |
▷ Public methods | 1,379 | 77.13% |
▷ Protected methods | 18 | 1.01% |
▷ Private methods | 391 | 21.87% |
Functions | 107 | |
▷ Named functions | 104 | 97.20% |
▷ Anonymous functions | 3 | 2.80% |
Constants | 149 | |
▷ Global constants | 101 | 67.79% |
▷ Class constants | 48 | 32.21% |
▷ Public constants | 48 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.74MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/treepress.png | 34.13KB | 16.53KB | ▼ 51.55% |
public/imgs/no-avatar.png | 8.86KB | 3.83KB | ▼ 56.80% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
admin/imgs/Banner.png | 691.19KB | 268.46KB | ▼ 61.16% |