Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.41MB] [CPU: ▼17.00ms] Passed 4 tests
Server-side resources used by Open Orphanage
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.35 | 42.87 ▼2.70 |
Dashboard /wp-admin | 11.49 ▲0.01 | 1,501,497.50 ▲9,159.54 |
Posts /wp-admin/edit.php | 3.83 ▲0.43 | 54.89 ▼7.55 |
Add New Post /wp-admin/post-new.php | 3.57 ▼2.36 | 43.22 ▼65.06 |
Media Library /wp-admin/upload.php | 3.64 ▲0.37 | 44.20 ▲7.30 |
Add New /wp-admin/post-new.php?post_type=child_aleluya | 3.56 | 40.33 |
Children /wp-admin/edit.php?post_type=child_aleluya | 3.75 | 45.41 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 193 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_oo_bible_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Open Orphanage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,997 ▲236 | 16.44 ▲1.85 | 190.60 ▲188.19 | 38.49 ▼7.42 |
Dashboard /wp-admin | 2,246 ▲66 | 5.67 ▲0.02 | 95.61 ▲4.88 | 63.50 ▲18.93 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 2.02 ▲0.00 | 39.65 ▲1.34 | 40.89 ▲4.44 |
Add New Post /wp-admin/post-new.php | 6,407 ▲4,881 | 27.88 ▲4.78 | 887.04 ▲159.27 | 38.62 ▼27.09 |
Media Library /wp-admin/upload.php | 1,444 ▲44 | 4.12 ▼0.06 | 101.70 ▼9.68 | 67.50 ▲18.73 |
Add New /wp-admin/post-new.php?post_type=child_aleluya | 6,498 | 19.71 | 920.71 | 52.85 |
Children /wp-admin/edit.php?post_type=child_aleluya | 1,163 | 1.92 | 33.88 | 35.47 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_oo_bible_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 0% 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)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=child_aleluya
- > Notice in wp-content/plugins/open-orphanage/admin-aleluya/oo-admin-child-aleluya.php+130
Undefined index: oo_child_meta_box_nonce_aleluya
- 28 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=child_aleluya
- > Notice in wp-content/plugins/open-orphanage/includes-aleluya/custom-post-types-aleluya/child-custom-post-type-aleluya.php+117
Undefined offset: 0
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=child_aleluya
- > Notice in wp-content/plugins/open-orphanage/includes-aleluya/custom-post-types-aleluya/child-custom-post-type-aleluya.php+178
Trying to get property 'y' of non-object
- 28 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=child_aleluya
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 28 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=child_aleluya
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=child_aleluya
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 24× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/open-orphanage/includes-aleluya/shortcodes-aleluya/show-children-shortcode-aleluya.php
- > /wp-content/plugins/open-orphanage/includes-aleluya/widgets-aleluya/bible-verse-widget-aleluya.php
- > /wp-content/plugins/open-orphanage/admin-aleluya/oo-admin-aleluya.php
- > /wp-content/plugins/open-orphanage/includes-aleluya/classes-aleluya/child-aleluya.php
- > /wp-content/plugins/open-orphanage/includes-aleluya/roles-aleluya.php
- > /wp-content/plugins/open-orphanage/includes-aleluya/supporters-aleluya.php
- > /wp-content/plugins/open-orphanage/includes-aleluya/classes-aleluya/oo-stripe-charge-aleluya.php
- > /wp-content/plugins/open-orphanage/includes-aleluya/classes-aleluya/classes-includes-aleluya.php
- > /wp-content/plugins/open-orphanage/includes-aleluya/charges-aleluya.php
- > /wp-content/plugins/open-orphanage/includes-aleluya/custom-post-types-aleluya/child-custom-post-type-aleluya.php
- 102× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/open-orphanage/vendor/stripe/stripe-php/lib/Refund.php:27
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Error\\Base' not found in wp-content/plugins/open-orphanage/vendor/stripe/stripe-php/lib/Error/OAuth/OAuthBase.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/open-orphanage/vendor/stripe/stripe-php/lib/PaymentMethod.php:23
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\StripeObject' not found in wp-content/plugins/open-orphanage/vendor/stripe/stripe-php/lib/Discount.php:17
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/open-orphanage/vendor/stripe/stripe-php/lib/CreditNote.php:27
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/open-orphanage/vendor/stripe/stripe-php/lib/Terminal/Reader.php:21
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/open-orphanage/vendor/stripe/stripe-php/lib/Issuing/Authorization.php:33
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Error\\InvalidRequest' not found in wp-content/plugins/open-orphanage/vendor/stripe/stripe-php/lib/Error/RateLimit.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/open-orphanage/vendor/stripe/stripe-php/lib/CountrySpec.php:19
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/open-orphanage/vendor/stripe/stripe-php/lib/Issuing/Transaction.php:25
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=child_aleluya
- > Network (severe)
wp-content/uploads/oo-aleluya/thumbs-aleluya/11-192x192-aleluya.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=child_aleluya
- > Network (severe)
http://perffection.com/img/favicon32-aleluya.png?7aleluya - Failed to load resource: the server responded with a status of 503 (Service Unavailable)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #2 (✝ Editing a Child post), #3 (✝ Open Orphanage settings)
open-orphanage/open-orphanage.php 92% from 13 tests
The entry point to "Open Orphanage" version 0.2.20190622a... is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "0.2.20190622a...")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
These items require your attention
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/open-orphanage/vendor/stripe/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 6,961 |
PHP | 155 | 1,584 | 4,047 | 6,870 |
Markdown | 2 | 287 | 0 | 648 |
JavaScript | 6 | 128 | 210 | 418 |
PO File | 1 | 24 | 26 | 61 |
CSS | 3 | 9 | 24 | 31 |
Sass | 3 | 6 | 1 | 31 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 2 | |
Traits | 7 | |
Classes | 120 | |
▷ Abstract classes | 7 | 5.83% |
▷ Concrete classes | 113 | 94.17% |
▷ Final classes | 0 | 0.00% |
Methods | 371 | |
▷ Static methods | 144 | 38.81% |
▷ Public methods | 329 | 88.68% |
▷ Protected methods | 13 | 3.50% |
▷ Private methods | 29 | 7.82% |
Functions | 79 | |
▷ Named functions | 71 | 89.87% |
▷ Anonymous functions | 8 | 10.13% |
Constants | 482 | |
▷ Global constants | 3 | 0.62% |
▷ Class constants | 479 | 99.38% |
▷ Public constants | 479 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected