Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼137.78ms] Passed 4 tests
Server-side resources used by Easy Flashcards
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.07 | 52.10 ▲16.89 |
Dashboard /wp-admin | 3.13 ▲0.07 | 94.61 ▲46.66 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 55.49 ▲15.32 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.05 | 91.41 ▼579.86 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 36.40 ▼3.47 |
flashcards /wp-admin/options-general.php?page=ef_flash | 3.02 | 30.84 |
Manage Flashcards /wp-admin/admin.php?page=ef_flash | 3.02 | 32.51 |
Flashcard Settings /wp-admin/admin.php?page=ef_settings_submenu | 3.02 | 30.06 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: 3 new tables, no new options
New tables |
---|
wp_ef_cards |
wp_ef_index |
wp_ef_card_design |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Flashcards
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,859 ▲277 | 16.70 ▲0.69 | 17.32 ▲7.80 | 52.97 ▲1.54 |
Dashboard /wp-admin | 3,009 ▲75 | 6.12 ▼0.02 | 170.90 ▲14.50 | 132.51 ▲5.07 |
Posts /wp-admin/edit.php | 2,781 ▲42 | 2.73 ▲0.03 | 73.03 ▲6.14 | 94.95 ▼2.70 |
Add New Post /wp-admin/post-new.php | 1,646 ▲55 | 21.05 ▲2.45 | 280.81 ▼124.31 | 113.07 ▲0.62 |
Media Library /wp-admin/upload.php | 1,852 ▲107 | 5.11 ▲0.07 | 149.35 ▼16.77 | 136.63 ▲3.32 |
flashcards /wp-admin/options-general.php?page=ef_flash | 1,098 | 2.41 | 57.33 | 67.08 |
Manage Flashcards /wp-admin/admin.php?page=ef_flash | 1,098 | 2.36 | 59.45 | 70.82 |
Flashcard Settings /wp-admin/admin.php?page=ef_settings_submenu | 1,251 | 2.40 | 62.82 | 70.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ef_flash
- > Notice in wp-content/plugins/easy-flashcards/ef_plugin_options.php+12
Undefined index: delete
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ef_flash
- > Notice in wp-content/plugins/easy-flashcards/ef_plugin_options.php+13
Undefined index: edit
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ef_flash
- > Notice in wp-content/plugins/easy-flashcards/ef_plugin_options.php+61
Undefined index: bravo
- > GET request to /wp-admin/admin.php?page=ef_settings_submenu
- > Notice in wp-content/plugins/easy-flashcards/ef_card_design.php+70
Undefined index: fi
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 items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-flashcards/ef_plugin_options.php:219
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-flashcards/ef_install.php:187
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-flashcards/ef_enqueues.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #3, #4 in easy-flashcards/assets to your readme.txt
- Donate link: Invalid URI ("")
easy-flashcards/ef_install.php 85% from 13 tests
The main file in "Easy Flashcards" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 165 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-flashcards.php" instead of "ef_install.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin464 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 105 | 26 | 398 |
CSS | 1 | 15 | 0 | 52 |
JavaScript | 2 | 8 | 3 | 14 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
4 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 50.16KB | 21.65KB | ▼ 56.83% |
screenshot-3.png | 59.02KB | 24.50KB | ▼ 58.49% |
screenshot-2.png | 51.26KB | 21.19KB | ▼ 58.66% |
screenshot-4.png | 33.72KB | 12.47KB | ▼ 63.01% |