Benchmarks
Plugin footprint 65% 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: ▲5.56MB] [CPU: ▲32.19ms] 75% from 4 tests
A check of server-side resources used by Genealogical Tree - WordPress Family Tree
Please have a look at the following items
- Extra RAM: The extra memory usage must be under 5MB (currently 5.56MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.07 ▲5.60 | 70.43 ▲29.85 |
Dashboard /wp-admin | 9.09 ▲5.78 | 85.28 ▲30.71 |
Posts /wp-admin/edit.php | 9.09 ▲5.73 | 95.59 ▲44.25 |
Add New Post /wp-admin/post-new.php | 11.01 ▲5.12 | 121.65 ▲23.95 |
Media Library /wp-admin/upload.php | 9.09 ▲5.85 | 88.78 ▲56.79 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.09 | 72.88 |
Server storage [IO: ▲6.55MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 307 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
fs_active_plugins |
genealogical_tree_active_ver |
widget_theysaidso_widget |
fs_debug_mode |
widget_recent-posts |
theysaidso_admin_options |
fs_accounts |
Browser metrics Passed 4 tests
An overview of browser requirements for Genealogical Tree - WordPress Family Tree
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,116 ▲369 | 15.85 ▲1.58 | 9.39 ▲7.67 | 30.38 ▼14.13 |
Dashboard /wp-admin | 2,405 ▲225 | 6.67 ▲1.09 | 129.94 ▲33.85 | 74.54 ▲29.14 |
Posts /wp-admin/edit.php | 2,337 ▲237 | 3.84 ▲1.83 | 58.30 ▲18.35 | 77.74 ▲37.59 |
Add New Post /wp-admin/post-new.php | 1,736 ▲210 | 22.78 ▼0.73 | 671.70 ▲35.39 | 38.14 ▼9.88 |
Media Library /wp-admin/upload.php | 1,470 ▲73 | 4.60 ▲0.29 | 93.98 ▼6.35 | 88.36 ▲44.41 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,309 | 3.51 | 47.90 | 60.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/genealogical-tree/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 10 options
- fs_active_plugins
- widget_theysaidso_widget
- can_compress_scripts
- fs_accounts
- theysaidso_admin_options
- genealogical_tree_active_ver
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- fs_debug_mode
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/genealogical-tree/admin/partials/genealogical-tree-meta-member-notes.php
- 230× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'color' of non-object in wp-content/plugins/genealogical-tree/public/partials/genealogical-tree-settings.php on line 34
- > PHP Notice
Undefined variable: rand_id in wp-content/plugins/genealogical-tree/public/partials/genealogical-tree-settings.php on line 175
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/genealogical-tree/admin/partials/genealogical-tree-meta-member-notes.php on line 17
- > PHP Notice
Undefined variable: rand_id in wp-content/plugins/genealogical-tree/public/partials/genealogical-tree-settings.php on line 187
- > PHP Notice
Undefined variable: rand_id in wp-content/plugins/genealogical-tree/public/partials/genealogical-tree-settings.php on line 189
- > PHP Notice
Trying to get property 'style' of non-object in wp-content/plugins/genealogical-tree/public/partials/genealogical-tree-settings.php on line 30
- > PHP Notice
Undefined variable: rand_id in wp-content/plugins/genealogical-tree/public/partials/genealogical-tree-settings.php on line 191
- > PHP Notice
Trying to get property 'color' of non-object in wp-content/plugins/genealogical-tree/public/partials/genealogical-tree-settings.php on line 41
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/genealogical-tree/admin/partials/genealogical-tree-meta-member-notes.php on line 12
- > PHP Notice
Undefined variable: setting in wp-content/plugins/genealogical-tree/public/partials/genealogical-tree-settings.php on line 20
- > PHP Notice
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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: family history, family tree, genealogy, ged, ancestry...
genealogical-tree/genealogical-tree.php Passed 13 tests
The main PHP script in "Genealogical Tree - WordPress Family Tree" version 2.2.2 is automatically included on every request by WordPress
111 characters long description:
Genealogical Tree is a ultimate solution for creating and displaying family trees, family history on WordPress.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin73,535 lines of code in 205 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 162 | 9,093 | 19,849 | 65,370 |
PO File | 11 | 2,825 | 5,050 | 6,087 |
CSS | 17 | 89 | 16 | 792 |
JavaScript | 9 | 59 | 121 | 731 |
SVG | 4 | 0 | 1 | 475 |
JSON | 2 | 0 | 0 | 80 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,096)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 187)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 75.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 187.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 9 | |
Classes | 67 | |
▷ Abstract classes | 2 | 2.99% |
▷ Concrete classes | 65 | 97.01% |
▷ Final classes | 0 | 0.00% |
Methods | 1,477 | |
▷ Static methods | 233 | 15.78% |
▷ Public methods | 1,056 | 71.50% |
▷ Protected methods | 17 | 1.15% |
▷ Private methods | 404 | 27.35% |
Functions | 109 | |
▷ Named functions | 105 | 96.33% |
▷ Anonymous functions | 4 | 3.67% |
Constants | 149 | |
▷ Global constants | 102 | 68.46% |
▷ Class constants | 47 | 31.54% |
▷ Public constants | 47 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
32 PNG files occupy 0.88MB with 0.40MB 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% |
admin/img/dash/image.png | 28.58KB | 11.97KB | ▼ 58.11% |
admin/img/add.png | 0.72KB | 0.75KB | 0.00% |
admin/img/dash/spouse.png | 50.16KB | 18.79KB | ▼ 62.54% |
admin/img/dash/contact.png | 32.14KB | 13.47KB | ▼ 58.10% |