Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.71MB] [CPU: ▲4.84ms] Passed 4 tests
Analyzing server-side resources used by GedShow
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.74 | 44.56 ▲7.33 |
Dashboard /wp-admin | 4.06 ▲0.75 | 55.74 ▲10.13 |
Posts /wp-admin/edit.php | 4.11 ▲0.75 | 53.84 ▲5.55 |
Add New Post /wp-admin/post-new.php | 6.57 ▲0.68 | 88.26 ▲1.15 |
Media Library /wp-admin/upload.php | 3.89 ▲0.66 | 38.87 ▲5.32 |
Options /wp-admin/admin.php?page=gedshow_options | 3.89 | 38.42 |
GedShow /wp-admin/admin.php?page=gedshow | 3.89 | 38.86 |
Photos /wp-admin/admin.php?page=gedshow_photos | 3.89 | 38.59 |
Pages /wp-admin/admin.php?page=gedshow_pages | 3.96 | 39.71 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_gedshow_anniversary_widget |
db_upgraded |
widget_gedshow_surnames_widget |
widget_gedshow_in_memoriam_widget |
widget_gedshow_birthday_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by GedShow
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲224 | 14.89 ▲0.24 | 1.65 ▼0.34 | 43.66 ▼3.95 |
Dashboard /wp-admin | 2,397 ▲206 | 6.63 ▲1.74 | 134.45 ▲26.92 | 41.72 ▼3.62 |
Posts /wp-admin/edit.php | 2,306 ▲217 | 3.55 ▲1.51 | 51.14 ▲13.47 | 32.07 ▼2.72 |
Add New Post /wp-admin/post-new.php | 1,556 ▲36 | 17.69 ▼5.72 | 631.85 ▼63.12 | 34.16 ▼23.43 |
Media Library /wp-admin/upload.php | 1,445 ▲57 | 4.41 ▲0.26 | 82.03 ▼25.63 | 44.39 ▼1.94 |
Options /wp-admin/admin.php?page=gedshow_options | 1,178 | 3.77 | 50.42 | 26.36 |
GedShow /wp-admin/admin.php?page=gedshow | 1,074 | 3.34 | 39.78 | 30.12 |
Photos /wp-admin/admin.php?page=gedshow_photos | 1,044 | 3.27 | 40.77 | 69.39 |
Pages /wp-admin/admin.php?page=gedshow_pages | 1,041 | 3.28 | 41.64 | 68.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 10 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_gedshow_anniversary_widget
- db_upgraded
- widget_gedshow_birthday_widget
- widget_gedshow_surnames_widget
- widget_recent-posts
- widget_gedshow_in_memoriam_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 52× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
include_once(GS_PLUGIN_DIR/classes/gs_Fact.class.php): failed to open stream: No such file or directory in wp-content/plugins/gedshow/includes/gedshow_get_ind_function.php on line 4
- > PHP Warning
include_once(): Failed opening 'GS_PLUGIN_DIR/includes/gedshow_db_handler.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/gedshow/gedshow_allnames_shortcode.php on line 11
- > PHP Warning
Use of undefined constant GS_PLUGIN_DIR - assumed 'GS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gedshow/gedshow_page_shortcode.php on line 11
- > PHP Warning
include_once(): Failed opening 'GS_PLUGIN_DIR/includes/gedshow_udf.inc.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/gedshow/gedshow_page_shortcode.php on line 12
- > PHP Warning
Use of undefined constant GS_PLUGIN_DIR - assumed 'GS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gedshow/includes/gedshow_get_ind_function.php on line 3
- > PHP Warning
include_once(GS_PLUGIN_DIR/includes/gedshow_get_name_details.php): failed to open stream: No such file or directory in wp-content/plugins/gedshow/gedshow_allnames_shortcode.php on line 8
- > PHP Warning
include_once(GS_PLUGIN_DIR/includes/gedshow_udf.inc.php): failed to open stream: No such file or directory in wp-content/plugins/gedshow/gedshow_page_shortcode.php on line 12
- > PHP Warning
include_once(): Failed opening 'GS_PLUGIN_DIR/classes/gs_Person.class.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/gedshow/includes/gedshow_get_ind_function.php on line 3
- > PHP Warning
include_once(GS_PLUGIN_DIR/includes/gedshow_udf.inc.php): failed to open stream: No such file or directory in wp-content/plugins/gedshow/gedshow_allnames_shortcode.php on line 12
- > PHP Warning
include_once(GS_PLUGIN_DIR/includes/gedshow_get_ind_function.php): failed to open stream: No such file or directory in wp-content/plugins/gedshow/gedshow_allnames_shortcode.php on line 10
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gedshow_pages
- > Network (severe)
wp-content/plugins/gedshow/my-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: gedcom, genealogy, ancestry, ancestor, heritage...
gedshow/csgen.php 92% from 13 tests
The main PHP file in "GedShow" ver. 2.1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gedshow.php" instead of "csgen.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected4,105 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 504 | 1,034 | 3,972 |
CSS | 1 | 6 | 6 | 133 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 23.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 80 | 91.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 8.05% |
Functions | 79 | |
▷ Named functions | 79 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/image-lg.png | 13.91KB | 11.27KB | ▼ 18.97% |
images/image.png | 2.25KB | 1.23KB | ▼ 45.33% |
images/note.png | 1.96KB | 0.51KB | ▼ 73.73% |
images/note-lg.png | 0.80KB | 0.59KB | ▼ 25.67% |
images/page.png | 0.26KB | 0.17KB | ▼ 33.96% |