Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.59ms] Passed 4 tests
Analyzing server-side resources used by iSpring Learn JWT
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.66 ▼0.58 |
Dashboard /wp-admin | 3.37 ▲0.07 | 47.36 ▼3.10 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.47 ▼7.38 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 90.25 ▼12.73 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.91 ▼3.13 |
iSpring Learn JWT /wp-admin/options-general.php?page=ispringlearnjwt | 3.26 | 32.51 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by iSpring Learn JWT
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.25 ▼1.31 | 1.76 ▲0.12 | 40.09 ▼2.93 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼1.06 | 107.51 ▲0.38 | 39.42 ▲1.41 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.17 ▲0.18 | 37.93 ▲0.14 | 29.72 ▼2.17 |
Add New Post /wp-admin/post-new.php | 1,546 ▲2 | 18.36 ▼4.81 | 598.41 ▼26.33 | 49.18 ▼9.88 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.20 ▼0.01 | 102.42 ▲0.31 | 40.60 ▼8.96 |
iSpring Learn JWT /wp-admin/options-general.php?page=ispringlearnjwt | 793 | 2.03 | 25.23 | 27.52 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ispring-learn-jwt/vendor/firebase/php-jwt/tests/bootstrap.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ispring-learn-jwt/ispring-learn-jwt.php:43
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ispring-learn-jwt/vendor/firebase/php-jwt/tests/JWTTest.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Contributors: The plugin contributors field is not present
- Screenshots: These screenshots need descriptions #1, #2 in ispring-learn-jwt/assets to your readme.txt
ispring-learn-jwt/ispring-learn-jwt.php Passed 13 tests
The principal PHP file in "iSpring Learn JWT" v. 1.0 is loaded by WordPress automatically on each request
61 characters long description:
Enable the Single Sign On between WordPress and iSpring Learn
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,187 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 159 | 308 | 859 |
XML | 2 | 1 | 0 | 95 |
Markdown | 1 | 21 | 0 | 93 |
JSON | 2 | 0 | 0 | 74 |
Bourne Shell | 1 | 3 | 4 | 31 |
PO File | 1 | 5 | 7 | 25 |
YAML | 1 | 3 | 0 | 10 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 12 | 20.34% |
▷ Public methods | 55 | 93.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 6.78% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin