Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.86ms] Passed 4 tests
A check of server-side resources used by Easy Flashcards
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.19 ▼6.67 |
Dashboard /wp-admin | 3.35 ▲0.00 | 44.11 ▼19.46 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.70 ▼0.46 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 90.10 ▼0.86 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.51 ▲1.52 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 23 new options
New WordPress options |
---|
easyfc_latest_try |
theysaidso_admin_options |
easyfc_correct_answers_text |
widget_theysaidso_widget |
easyfc_questions_total |
easyfc_questions_text |
widget_recent-comments |
widget_recent-posts |
easyfc_yes_btn |
easyfc_reset_btn |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Easy Flashcards
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 14.63 ▲0.28 | 1.70 ▼0.04 | 38.66 ▼5.18 |
Dashboard /wp-admin | 2,207 ▲30 | 5.60 ▲0.02 | 92.00 ▼10.11 | 40.93 ▼2.68 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.02 ▲0.01 | 40.04 ▲2.04 | 36.54 ▲3.82 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.23 ▼0.31 | 580.14 ▼85.93 | 55.47 ▲2.64 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.18 ▼0.01 | 96.31 ▼0.03 | 39.98 ▼1.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 23 options in the database
- easyfc_repeat_wrong_text
- db_upgraded
- easyfc_repeat_all_text
- easyfc_reset_btn
- easyfc_back_textsize
- widget_recent-comments
- easyfc_correct_all_text
- easyfc_front_textsize
- easyfc_questions_text
- theysaidso_admin_options
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/easy-fc/easyfc.php:143
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: flashcads
easy-fc/easyfc.php 92% from 13 tests
The primary PHP file in "Easy Flashcards" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("easy-fc.php" instead of "easyfc.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 plugin657 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 16 | 258 |
CSS | 1 | 26 | 5 | 249 |
JavaScript | 1 | 32 | 12 | 150 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.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 | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.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 | 6 | |
▷ Named functions | 6 | 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
There were not PNG files found in your plugin