Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼2.36ms] Passed 4 tests
This is a short check of server-side resources used by Oracle Cards Lite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 35.09 ▼3.33 |
Dashboard /wp-admin | 3.51 ▲0.21 | 47.91 ▲3.20 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 55.06 ▲7.59 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 83.76 ▼15.50 |
Media Library /wp-admin/upload.php | 3.43 ▲0.21 | 40.16 ▲6.20 |
Status /wp-admin/admin.php?page=oracle-cards-status | 3.50 | 33.94 |
Oracle Cards /wp-admin/edit-tags.php?taxonomy=decks&post_type=card | 3.45 | 38.32 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Oracle Cards Lite
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲100 | 13.24 ▼1.34 | 1.67 ▲0.01 | 42.51 ▲1.34 |
Dashboard /wp-admin | 2,247 ▲62 | 4.85 ▼0.17 | 113.03 ▲2.86 | 37.88 ▼3.78 |
Posts /wp-admin/edit.php | 2,133 ▲62 | 2.04 ▲0.01 | 40.23 ▲1.70 | 35.44 ▲0.68 |
Add New Post /wp-admin/post-new.php | 1,565 ▲32 | 23.12 ▲0.12 | 641.03 ▼35.27 | 60.06 ▲6.92 |
Media Library /wp-admin/upload.php | 1,429 ▲44 | 4.18 ▲0.01 | 98.75 ▼3.84 | 43.18 ▼3.68 |
Status /wp-admin/admin.php?page=oracle-cards-status | 1,218 | 2.09 | 26.41 | 51.12 |
Oracle Cards /wp-admin/edit-tags.php?taxonomy=decks&post_type=card | 1,495 | 3.19 | 43.07 | 81.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant EOS_CARDS_PLUGIN_FILE - assumed 'EOS_CARDS_PLUGIN_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/oracle-cards/admin/class-eos-oc-license-manager-client-pro.php on line 435
- > PHP Fatal error
require_once(): Failed opening required 'EOS_CARDS_DIR/admin/class-eos-oc-license-manager-client-pro.php' (include_path='.:/usr/share/php') in wp-content/plugins/oracle-cards/admin/oc-license-handler.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/oracle-cards/templates/single-card.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function is_main_site() in wp-content/plugins/oracle-cards/admin/class-eos-oc-license-manager-client-pro.php:86
- > PHP Warning
require_once(EOS_CARDS_DIR/admin/class-eos-oc-license-manager-client-pro.php): failed to open stream: No such file or directory in wp-content/plugins/oracle-cards/admin/oc-license-handler.php on line 8
- > PHP Warning
Use of undefined constant EOS_CARDS_DIR - assumed 'EOS_CARDS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/oracle-cards/admin/oc-license-handler.php on line 8
- > PHP Warning
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI ("")
oracle-cards/oracle-cards.php Passed 13 tests
Analyzing the main PHP file in "Oracle Cards Lite" version 1.1.9
31 characters long description:
Random oracle cards generation.
Code Analysis Passed 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 plugin4,515 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 234 | 566 | 2,771 |
PO File | 3 | 289 | 372 | 892 |
JavaScript | 6 | 3 | 11 | 851 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 8 | 13.56% |
▷ Public methods | 44 | 74.58% |
▷ Protected methods | 2 | 3.39% |
▷ Private methods | 13 | 22.03% |
Functions | 47 | |
▷ Named functions | 43 | 91.49% |
▷ Anonymous functions | 4 | 8.51% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.40MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/oracle-cards.png | 3.07KB | 2.12KB | ▼ 30.96% |
admin/img/card-back-3.png | 35.74KB | 35.89KB | 0.00% |
admin/img/oracle-cards-icon.png | 0.59KB | 0.56KB | ▼ 4.98% |
admin/img/icon-256x256.png | 14.12KB | 14.19KB | 0.00% |
admin/img/card-back-5.png | 0.93KB | 0.46KB | ▼ 50.37% |