Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > User error in wp-content/plugins/currensees/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.16.
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.09ms] Passed 4 tests
A check of server-side resources used by Currensees
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.06 ▼2.73 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.28 ▲0.62 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.07 ▼0.97 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.01 ▼17.39 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.91 ▼3.27 |
Server storage [IO: ▲5.50MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 1,733 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Currensees: 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,800 ▲29 | 13.23 ▼1.15 | 4.92 ▲3.09 | 40.19 ▼0.86 |
Dashboard /wp-admin | 2,203 ▲26 | 5.77 ▼0.13 | 104.87 ▲4.01 | 37.77 ▼4.72 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.02 | 38.18 ▼3.14 | 35.17 ▲0.19 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.19 ▲0.07 | 656.82 ▼49.31 | 57.33 ▲6.62 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.25 ▼0.07 | 95.48 ▼1.59 | 42.31 ▲1.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/currensees/vendor/nikic/php-parser/grammar/rebuildParsers.php
- 1208× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Parse error
syntax error, unexpected 'Telemetry' (T_STRING), expecting variable (T_VARIABLE) in wp-content/plugins/currensees/vendor/phpunit/phpunit/src/Event/Events/Test/Issue/PhpunitDeprecationTriggered.php on line 25
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\Exception' not found in wp-content/plugins/currensees/vendor/phpunit/phpunit/src/Framework/MockObject/Exception/UnknownTypeException.php:17
- > PHP Fatal error
Uncaught Error: Interface 'SebastianBergmann\\CodeCoverage\\Exception' not found in wp-content/plugins/currensees/vendor/phpunit/php-code-coverage/src/Exception/TestIdMissingException.php:14
- > PHP Fatal error
Cannot use ::class with dynamic class name in wp-content/plugins/currensees/vendor/phpunit/phpunit/src/Logging/TestDox/NamePrettifier.php on line 171
- > PHP Fatal error
Cannot use ::class with dynamic class name in wp-content/plugins/currensees/vendor/phpunit/phpunit/src/Runner/Filter/NameFilterIterator.php on line 127
- > PHP Parse error
syntax error, unexpected 'Telemetry' (T_STRING), expecting variable (T_VARIABLE) in wp-content/plugins/currensees/vendor/phpunit/phpunit/src/Event/Events/TestRunner/EventFacadeSealed.php on line 22
- > PHP Fatal error
Uncaught Error: Class 'SebastianBergmann\\Type\\Type' not found in wp-content/plugins/currensees/vendor/sebastian/type/src/type/VoidType.php:12
- > PHP Fatal error
Uncaught Error: Interface 'PHPUnit\\Event\\Subscriber' not found in wp-content/plugins/currensees/vendor/phpunit/phpunit/src/Event/Events/Test/TestDouble/TestStubForIntersectionOfInterfacesCreatedSubscriber.php:17
- > PHP Parse error
syntax error, unexpected 'string' (T_STRING), expecting variable (T_VARIABLE) in wp-content/plugins/currensees/vendor/phpunit/phpunit/src/TextUI/Command/Commands/ListTestsAsXmlCommand.php on line 28
- > PHP Fatal error
Uncaught Error: Interface 'PHPUnit\\TextUI\\Exception' not found in wp-content/plugins/currensees/vendor/phpunit/phpunit/src/TextUI/Configuration/Exception/Exception.php:15
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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
6 plugin tags: exchange rate, exchange, exchange rates, currency, conversion...
currensees/currensees.php Passed 13 tests
The primary PHP file in "Currensees" version 1.0 is used by WordPress to initiate all plugin functionality
53 characters long description:
A WordPress plugin for integrating with Currency API.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected95,707 lines of code in 1,638 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,503 | 16,803 | 32,061 | 81,338 |
Markdown | 73 | 2,986 | 0 | 6,751 |
JSON | 36 | 6 | 0 | 3,970 |
yacc | 3 | 336 | 12 | 2,050 |
XSD | 4 | 0 | 0 | 1,246 |
CSS | 4 | 32 | 6 | 133 |
YAML | 3 | 23 | 1 | 96 |
JavaScript | 6 | 8 | 15 | 66 |
XML | 4 | 1 | 0 | 55 |
SVG | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 151)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 5.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 239.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 151.00 |
Code structure | ||
---|---|---|
Namespaces | 130 | |
Interfaces | 158 | |
Traits | 9 | |
Classes | 1,317 | |
▷ Abstract classes | 62 | 4.71% |
▷ Concrete classes | 1,255 | 95.29% |
▷ Final classes | 894 | 71.24% |
Methods | 6,481 | |
▷ Static methods | 606 | 9.35% |
▷ Public methods | 5,306 | 81.87% |
▷ Protected methods | 449 | 6.93% |
▷ Private methods | 726 | 11.20% |
Functions | 1,568 | |
▷ Named functions | 246 | 15.69% |
▷ Anonymous functions | 1,322 | 84.31% |
Constants | 547 | |
▷ Global constants | 3 | 0.55% |
▷ Class constants | 544 | 99.45% |
▷ Public constants | 493 | 90.62% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin