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.07MB] [CPU: ▼3.92ms] Passed 4 tests
An overview of server-side resources used by WP Flashcard LITE
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 41.17 ▲2.88 |
Dashboard /wp-admin | 3.39 ▲0.04 | 44.32 ▼16.64 |
Posts /wp-admin/edit.php | 3.45 ▲0.08 | 45.20 ▲1.33 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 84.21 ▼3.23 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.24 ▲5.59 |
Flash Card Settings /wp-admin/edit.php?post_type=flashcard_set&page=wp-flashcard-setting-page | 3.29 | 30.99 |
Add New /wp-admin/post-new.php?post_type=flashcard_set | 3.52 | 46.04 |
Flash Cards /wp-admin/edit.php?post_type=flashcard_set | 3.39 | 37.90 |
Server storage [IO: ▲0.38MB] [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: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WP Flashcard LITE: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲190 | 13.55 ▼0.81 | 10.55 ▲8.99 | 42.38 ▼0.67 |
Dashboard /wp-admin | 2,228 ▲47 | 5.58 ▼0.13 | 82.54 ▼14.80 | 37.65 ▼0.78 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.01 ▲0.02 | 33.32 ▼4.38 | 35.03 ▲2.74 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 23.01 ▼0.28 | 665.27 ▼31.24 | 63.27 ▼11.01 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.23 ▲0.02 | 102.86 ▼4.13 | 42.53 ▼3.36 |
Flash Card Settings /wp-admin/edit.php?post_type=flashcard_set&page=wp-flashcard-setting-page | 848 | 2.03 | 24.94 | 25.51 |
Add New /wp-admin/post-new.php?post_type=flashcard_set | 2,120 | 4.42 | 64.35 | 33.05 |
Flash Cards /wp-admin/edit.php?post_type=flashcard_set | 1,716 | 3.79 | 50.22 | 28.65 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-flashcard-lite/includes/shortcodes/views/flashcard-shortcode-html.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-flashcard-lite/includes/shortcodes/flashcard-shortcode.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% 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
4 plugin tags: flashcard, flash card, flashcards, quizlet
wp-flashcard-lite/wp-flashcard.php 85% from 13 tests
"WP Flashcard LITE" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-flashcard-lite.php" instead of "wp-flashcard.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,304 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 178 | 202 | 1,573 |
CSS | 8 | 302 | 62 | 1,380 |
PHP | 6 | 56 | 80 | 351 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/backend/keyboard.png | 0.16KB | 0.14KB | ▼ 9.94% |
assets/images/icons/04.png | 1.05KB | 0.22KB | ▼ 79.18% |
assets/images/icons/05.png | 1.05KB | 0.23KB | ▼ 78.50% |