Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼0.82ms] Passed 4 tests
A check of server-side resources used by Khan Exercises for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.58 ▲0.52 |
Dashboard /wp-admin | 3.35 ▲0.05 | 59.57 ▼3.55 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 61.26 ▲5.48 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 107.24 ▲2.69 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 36.75 ▼2.94 |
Khan Exercises /wp-admin/options-general.php?page=khan-exercises | 3.22 | 38.41 |
Server storage [IO: ▲9.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 875 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Khan Exercises for WordPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 14.74 ▲0.34 | 1.89 ▼0.30 | 45.31 ▼7.15 |
Dashboard /wp-admin | 2,201 ▲16 | 4.85 ▼0.09 | 123.55 ▼31.20 | 54.12 ▼3.30 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.06 ▲0.02 | 48.20 ▲3.99 | 42.00 ▲3.58 |
Add New Post /wp-admin/post-new.php | 1,536 ▲125 | 21.17 ▲3.29 | 733.22 ▲138.13 | 68.56 ▲6.72 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.18 ▼0.00 | 105.59 ▼7.30 | 49.81 ▼3.21 |
Khan Exercises /wp-admin/options-general.php?page=khan-exercises | 943 | 1.99 | 28.16 | 35.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=khan-exercises
- > Notice in wp-content/plugins/khan-exercises/khan-exercises.php+387
Undefined variable: json
- > GET request to /wp-admin/options-general.php?page=khan-exercises
- > Notice in wp-content/plugins/khan-exercises/khan-exercises.php+391
Undefined variable: identifier
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/khan-exercises/khan-exercises.php:185
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (An example of exercise in a standard WordPress theme), #2 (A list of all available Khan Exercises - over 400 exercises!), #3 (An example exercise hosted in a WordPress blog, but embedded via an `iframe` into another blog at blogger.com), #4 (Plugin settings page)
khan-exercises/khan-exercises.php Passed 13 tests
Analyzing the main PHP file in "Khan Exercises for WordPress" version 1.1
56 characters long description:
Brings Khan Academy exercises into your WordPress blogs.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin129,630 lines of code in 774 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 435 | 5,331 | 601 | 60,952 |
JavaScript | 304 | 8,801 | 9,388 | 53,737 |
CSS | 3 | 753 | 499 | 8,180 |
SVG | 21 | 0 | 0 | 5,971 |
PHP | 2 | 74 | 71 | 315 |
Python | 2 | 47 | 6 | 159 |
Ruby | 2 | 28 | 7 | 152 |
TeX | 1 | 33 | 5 | 121 |
Bourne Shell | 1 | 7 | 0 | 20 |
Markdown | 2 | 13 | 0 | 19 |
make | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 13 | |
▷ Named functions | 13 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
26 PNG files occupy 0.20MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
khan-exercises/images/previous-step.png | 0.46KB | 0.46KB | 0.00% |
khan-exercises/images/avatars/questionmark.png | 1.66KB | 1.86KB | 0.00% |
khan-exercises/images/meteorite-small.png | 2.55KB | 1.87KB | ▼ 26.45% |
khan-exercises/images/avatars/mr-pink.png | 13.58KB | 7.01KB | ▼ 48.42% |
khan-exercises/images/avatars/robot_male_3.png | 16.56KB | 6.84KB | ▼ 58.67% |