Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼296.94ms] Passed 4 tests
Analyzing server-side resources used by Catenis API Client for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 55.41 ▲2.26 |
Dashboard /wp-admin | 3.46 ▲0.05 | 33.26 ▲0.31 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 40.49 ▼6.35 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 92.21 ▼1,183.96 |
Media Library /wp-admin/upload.php | 3.34 ▲0.04 | 24.84 ▲2.73 |
Catenis API Client /wp-admin/options-general.php?page=ctn_api_client_opts | 3.30 | 28.53 |
Server storage [IO: ▲3.42MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 644 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Catenis API Client for WordPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 15.84 ▲0.31 | 5.75 ▲0.11 | 2.85 ▲0.08 |
Dashboard /wp-admin | 2,894 ▲40 | 6.12 ▲0.00 | 117.99 ▼11.71 | 157.32 ▼0.42 |
Posts /wp-admin/edit.php | 2,696 ▲11 | 3.23 ▼0.00 | 63.78 ▼2.12 | 144.49 ▲3.75 |
Add New Post /wp-admin/post-new.php | 1,654 ▼7 | 18.08 ▲1.00 | 418.93 ▼2.18 | 160.18 ▲7.72 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.55 ▲0.03 | 136.25 ▼5.05 | 182.32 ▼5.24 |
Catenis API Client /wp-admin/options-general.php?page=ctn_api_client_opts | 1,115 | 2.44 | 52.28 | 136.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 338× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/catenis-api-client/thirdparty/ringcentral/psr7/tests/AppendStreamTest.php:7
- > PHP Warning
require(wp-content/plugins/catenis-api-client/thirdparty/evenement/evenement/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/catenis-api-client/thirdparty/evenement/evenement/examples/benchmark-remove-listener-once.php on line 18
- > PHP Fatal error
Uncaught Error: Interface 'Catenis\\WP\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/catenis-api-client/thirdparty/guzzlehttp/psr7/src/LimitStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Catenis\\WP\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/catenis-api-client/thirdparty/ringcentral/psr7/src/BufferStream.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Catenis\\WP\\React\\Socket\\ConnectorInterface' not found in wp-content/plugins/catenis-api-client/thirdparty/react/socket/src/SecureConnector.php:11
- > PHP Warning
require(wp-content/plugins/catenis-api-client/thirdparty/clue/buzz-react/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/catenis-api-client/thirdparty/clue/buzz-react/examples/11-http-proxy.php on line 9
- > PHP Warning
require(wp-content/plugins/catenis-api-client/thirdparty/clue/buzz-react/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/catenis-api-client/thirdparty/clue/buzz-react/examples/02-concurrent.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'TestCase' not found in wp-content/plugins/catenis-api-client/thirdparty/clue/block-react/tests/FunctionSleepTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/catenis-api-client/thirdparty/ratchet/rfc6455/tests/unit/Messaging/MessageTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'TestCase' not found in wp-content/plugins/catenis-api-client/thirdparty/clue/buzz-react/tests/BrowserTest.php:9
- > 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 Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: blockchain of things, blockchain, catenis api, catenis
catenis-api-client/catenis-api-client.php Passed 13 tests
Analyzing the main PHP file in "Catenis API Client for WordPress" version 3.0.0
64 characters long description:
Provides a way to use the Catenis services from within 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
Good job! No executable or dangerous file extensions detected64,458 lines of code in 575 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 437 | 9,966 | 16,807 | 45,605 |
Markdown | 60 | 5,097 | 0 | 14,727 |
JSON | 35 | 0 | 0 | 2,789 |
JavaScript | 4 | 105 | 88 | 484 |
YAML | 16 | 72 | 32 | 477 |
XML | 15 | 16 | 0 | 296 |
make | 3 | 17 | 0 | 41 |
Bourne Shell | 3 | 9 | 0 | 24 |
Dockerfile | 2 | 8 | 0 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 185.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 69 | |
Interfaces | 35 | |
Traits | 4 | |
Classes | 311 | |
▷ Abstract classes | 5 | 1.61% |
▷ Concrete classes | 306 | 98.39% |
▷ Final classes | 64 | 20.92% |
Methods | 3,058 | |
▷ Static methods | 255 | 8.34% |
▷ Public methods | 2,690 | 87.97% |
▷ Protected methods | 82 | 2.68% |
▷ Private methods | 286 | 9.35% |
Functions | 1,225 | |
▷ Named functions | 168 | 13.71% |
▷ Anonymous functions | 1,057 | 86.29% |
Constants | 193 | |
▷ Global constants | 48 | 24.87% |
▷ Class constants | 145 | 75.13% |
▷ Public constants | 145 | 100.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
No PNG images were found in this plugin