Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼141.97ms] Passed 4 tests
An overview of server-side resources used by Norsani API
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 35.93 ▲14.51 |
Dashboard /wp-admin | 3.06 ▲0.01 | 41.62 ▼4.54 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 47.60 ▲4.46 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 100.39 ▼560.37 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 31.17 ▼7.43 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 232 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Norsani API
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲141 | 15.81 ▲0.32 | 12.02 ▲3.55 | 53.49 ▼1.64 |
Dashboard /wp-admin | 2,966 ▲32 | 5.91 ▼0.06 | 162.33 ▲0.47 | 118.28 ▲0.26 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 70.10 ▲1.48 | 97.74 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.74 ▼0.04 | 391.92 ▼4.32 | 115.83 ▼6.03 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▼0.01 | 148.64 ▼19.38 | 127.38 ▲2.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 104× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/norsani-api/vendor/braintree/braintree_php/lib/Braintree/EuropeBankAccount.php:24
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Instance' not found in wp-content/plugins/norsani-api/vendor/braintree/braintree_php/lib/Braintree/Transaction/AddressDetails.php:23
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Exception' not found in wp-content/plugins/norsani-api/vendor/braintree/braintree_php/lib/Braintree/Exception/Timeout.php:12
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/norsani-api/vendor/braintree/braintree_php/lib/Braintree/AuthorizationAdjustment.php:15
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Collection' not found in wp-content/plugins/norsani-api/vendor/braintree/braintree_php/lib/Braintree/Error/ValidationErrorCollection.php:19
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Result\\UsBankAccountVerification' not found in wp-content/plugins/norsani-api/vendor/braintree/braintree_php/lib/Braintree/UsBankAccountVerification.php:21
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Exception' not found in wp-content/plugins/norsani-api/vendor/braintree/braintree_php/lib/Braintree/Exception/Configuration.php:13
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\MultipleValueNode' not found in wp-content/plugins/norsani-api/vendor/braintree/braintree_php/lib/Braintree/MultipleValueOrTextNode.php:4
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/norsani-api/vendor/braintree/braintree_php/lib/Braintree/UnknownPaymentMethod.php:23
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/norsani-api/vendor/braintree/braintree_php/lib/Braintree/RiskData.php:9
- > 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 Passed 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
There were not plugin tags detected
norsani-api/norsani-api.php Passed 13 tests
Analyzing the main PHP file in "Norsani API" version 1.3
28 characters long description:
API to connect with Norsani.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Please fix the following items
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/norsani-api/vendor/braintree/braintree_php/lib/ssl/api_braintreegateway_com.ca.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 196 | 2,279 | 5,373 | 13,021 |
PO File | 13 | 1,127 | 1,324 | 3,245 |
Markdown | 2 | 194 | 0 | 571 |
JSON | 3 | 0 | 0 | 92 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 189 | |
▷ Abstract classes | 2 | 1.06% |
▷ Concrete classes | 187 | 98.94% |
▷ Final classes | 1 | 0.53% |
Methods | 1,028 | |
▷ Static methods | 422 | 41.05% |
▷ Public methods | 853 | 82.98% |
▷ Protected methods | 54 | 5.25% |
▷ Private methods | 121 | 11.77% |
Functions | 73 | |
▷ Named functions | 14 | 19.18% |
▷ Anonymous functions | 59 | 80.82% |
Constants | 821 | |
▷ Global constants | 2 | 0.24% |
▷ Class constants | 819 | 99.76% |
▷ Public constants | 819 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin