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
This plugin's installer ran successfully
Server metrics [RAM: ▲5.16MB] [CPU: ▲34.01ms] 75% from 4 tests
An overview of server-side resources used by Tarot Card Oracle
Please fix the following
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.16MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.87 ▲5.41 | 67.30 ▲24.44 |
Dashboard /wp-admin | 8.89 ▲5.59 | 84.85 ▲35.46 |
Posts /wp-admin/edit.php | 8.89 ▲5.54 | 85.08 ▲36.81 |
Add New Post /wp-admin/post-new.php | 10.00 ▲4.12 | 128.59 ▲40.51 |
Media Library /wp-admin/upload.php | 8.89 ▲5.67 | 69.92 ▲39.34 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.89 | 62.30 |
Server storage [IO: ▲12.66MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 575 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
card_oracle_version |
can_compress_scripts |
fs_active_plugins |
widget_recent-posts |
fs_debug_mode |
widget_recent-comments |
fs_accounts |
Browser metrics Passed 4 tests
Tarot Card Oracle: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲238 | 14.02 ▼0.36 | 7.26 ▲5.30 | 29.38 ▼17.44 |
Dashboard /wp-admin | 2,284 ▲93 | 5.90 ▲1.01 | 110.24 ▼9.00 | 39.76 ▼7.13 |
Posts /wp-admin/edit.php | 2,174 ▲85 | 2.15 ▲0.12 | 39.98 ▲4.32 | 36.90 ▲2.86 |
Add New Post /wp-admin/post-new.php | 1,697 ▲175 | 22.47 ▼0.83 | 606.44 ▼32.20 | 55.35 ▼2.60 |
Media Library /wp-admin/upload.php | 1,463 ▲78 | 4.16 ▲0.04 | 94.32 ▼18.65 | 43.03 ▼7.33 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,132 | 1.85 | 26.10 | 27.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/card-oracle/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- theysaidso_admin_options
- widget_recent-posts
- fs_debug_mode
- card_oracle_version
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- fs_accounts
- fs_active_plugins
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/card-oracle/admin/partials/card-oracle-admin-display.php
- > /wp-content/plugins/card-oracle/admin/partials/card-oracle-admin-footer.php
- > /wp-content/plugins/card-oracle/includes/stripe/build.php
- > /wp-content/plugins/card-oracle/admin/partials/card-oracle-tab-general.php
- > /wp-content/plugins/card-oracle/includes/stripe/update_certs.php
- 210× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/card-oracle/includes/stripe/lib/Coupon.php:32
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/card-oracle/includes/stripe/lib/Service/Issuing/IssuingServiceFactory.php:16
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/card-oracle/includes/stripe/lib/Service/TaxRateService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/card-oracle/includes/stripe/lib/Service/BillingPortal/SessionService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/card-oracle/includes/stripe/lib/Service/InvoiceItemService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/card-oracle/includes/stripe/lib/Service/Identity/IdentityServiceFactory.php:13
- > PHP Notice
Undefined variable: active_tab in wp-content/plugins/card-oracle/admin/partials/card-oracle-tab-general.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\StripeObject' not found in wp-content/plugins/card-oracle/includes/stripe/lib/ApiResource.php:8
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/card-oracle/includes/stripe/lib/CreditNote.php:40
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/card-oracle/includes/stripe/lib/FileLink.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: cartouche cards, tarot readings, runes, tarot cards
card-oracle/card-oracle.php Passed 13 tests
The main PHP file in "Tarot Card Oracle" ver. 1.1.6 adds more information about the plugin and also serves as the entry point for this plugin
104 characters long description:
This plugin lets you create tarot and oracle readings using your own cards, spreads and interpretations.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please make sure to remedy the following
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/card-oracle/includes/stripe/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 373 | 10,443 | 28,796 | 45,233 |
PO File | 6 | 2,538 | 3,258 | 5,214 |
JSON | 4 | 0 | 0 | 2,549 |
CSS | 19 | 247 | 16 | 1,366 |
Markdown | 3 | 703 | 0 | 1,166 |
JavaScript | 11 | 96 | 122 | 511 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 8 | 0 | 23 |
SVG | 1 | 0 | 0 | 3 |
YAML | 1 | 0 | 0 | 3 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 18.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 9 | |
Traits | 7 | |
Classes | 272 | |
▷ Abstract classes | 12 | 4.41% |
▷ Concrete classes | 260 | 95.59% |
▷ Final classes | 0 | 0.00% |
Methods | 2,103 | |
▷ Static methods | 367 | 17.45% |
▷ Public methods | 1,620 | 77.03% |
▷ Protected methods | 51 | 2.43% |
▷ Private methods | 432 | 20.54% |
Functions | 146 | |
▷ Named functions | 134 | 91.78% |
▷ Anonymous functions | 12 | 8.22% |
Constants | 967 | |
▷ Global constants | 153 | 15.82% |
▷ Class constants | 814 | 84.18% |
▷ Public constants | 814 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 2.57MB with 1.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/layouts/five_card_layout-2.png | 303.04KB | 103.87KB | ▼ 65.72% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/layouts/five_card_layout-1.png | 304.23KB | 104.04KB | ▼ 65.80% |
assets/layouts/celtic_cross_layout.png | 322.90KB | 114.58KB | ▼ 64.52% |