Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.40ms] Passed 4 tests
Server-side resources used by Jasmine Test Runner
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.50 ▼5.78 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.43 ▼4.41 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.32 ▲2.23 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 83.48 ▼10.53 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.36 ▼0.88 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Jasmine Test Runner
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.23 ▲0.24 | 1.70 ▼0.20 | 46.95 ▼0.51 |
Dashboard /wp-admin | 2,198 ▲26 | 5.65 ▼0.06 | 85.62 ▼20.75 | 40.29 ▲0.58 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.99 ▲0.02 | 34.89 ▲0.13 | 37.48 ▲2.44 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.71 ▲5.68 | 611.36 ▼39.48 | 80.73 ▼12.64 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.25 ▲0.10 | 103.09 ▼1.95 | 41.49 ▼5.41 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/jasmine-test-runner/trunk/class-jasmine-test-runner.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/jasmine-test-runner/class-jasmine-test-runner.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: javascript testing, js unit test, unit tests, jasmine
jasmine-test-runner/jasmine-test-runner.php Passed 13 tests
The main PHP script in "Jasmine Test Runner" version 0.1 is automatically included on every request by WordPress
35 characters long description:
Run your jasmine tests in WordPress
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
Everything looks great! No dangerous files found in this plugin3,725 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 834 | 186 | 3,496 |
CSS | 2 | 2 | 0 | 167 |
PHP | 2 | 12 | 61 | 62 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 40.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 60.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin