Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.68MB] [CPU: ▼0.31ms] Passed 4 tests
Analyzing server-side resources used by Irisnet API Client - AI child protection plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.70 | 38.41 ▼3.50 |
Dashboard /wp-admin | 4.02 ▲0.72 | 47.61 ▼2.96 |
Posts /wp-admin/edit.php | 4.07 ▲0.71 | 49.00 ▲1.26 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.67 | 92.33 ▲4.26 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 37.56 ▲3.97 |
Licenses /wp-admin/admin.php?page=irisnet_licenses | 3.85 | 33.90 |
Rules /wp-admin/admin.php?page=irisnet_rules | 3.85 | 36.03 |
Dashboard /wp-admin/admin.php?page=irisnet_dash | 3.90 | 31.41 |
Server storage [IO: ▲2.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 374 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
irisnet_plugin_version |
irisnet_plugin_licenses |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
irisnet_plugin_rules |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Irisnet API Client - AI child protection plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲95 | 14.83 ▲0.12 | 1.72 ▲0.06 | 37.69 ▼7.75 |
Dashboard /wp-admin | 2,250 ▲73 | 4.86 ▼0.71 | 90.78 ▼11.73 | 38.75 ▼7.93 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 2.34 ▲0.38 | 41.44 ▲4.15 | 32.44 ▼2.59 |
Add New Post /wp-admin/post-new.php | 1,555 ▲26 | 23.41 ▲0.29 | 655.02 ▲64.42 | 54.46 ▼9.04 |
Media Library /wp-admin/upload.php | 1,455 ▲52 | 4.08 ▼0.09 | 99.17 ▲0.13 | 40.70 ▼1.95 |
Licenses /wp-admin/admin.php?page=irisnet_licenses | 887 | 2.07 | 31.40 | 28.98 |
Rules /wp-admin/admin.php?page=irisnet_rules | 6,205 | 2.08 | 32.52 | 50.31 |
Dashboard /wp-admin/admin.php?page=irisnet_dash | 1,892 | 2.66 | 48.67 | 31.50 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- irisnet_plugin_version
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/irisnet-api/irisnet-api-client.php
- 140× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Tests\\Psr7\\BaseTest' not found in wp-content/plugins/irisnet-api/vendor/guzzlehttp/psr7/tests/LazyOpenStreamTest.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Irisnet\\APIV1\\Client\\Model\\ModelInterface' not found in wp-content/plugins/irisnet-api/ext/lib/Model/INObject.php:44
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Tests\\Psr7\\BaseTest' not found in wp-content/plugins/irisnet-api/vendor/guzzlehttp/psr7/tests/AppendStreamTest.php:8
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/irisnet-api/vendor/guzzlehttp/promises/src/Promise.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/irisnet-api/vendor/guzzlehttp/promises/tests/RejectedPromiseTest.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/irisnet-api/templates/licenses.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Irisnet\\APIV1\\Client\\Model\\ModelInterface' not found in wp-content/plugins/irisnet-api/ext/lib/Model/INError.php:43
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/irisnet-api/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php:9
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Tests\\Psr7\\BaseTest' not found in wp-content/plugins/irisnet-api/vendor/guzzlehttp/psr7/tests/QueryTest.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Irisnet\\APIV2\\Client\\Model\\ModelInterface' not found in wp-content/plugins/irisnet-api/ext/lib/Model/Coordinates.php:45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: content moderation, porn blocker, artificial intelligence, ai privacy protection, image moderation...
irisnet-api/irisnet-api-client.php 85% from 13 tests
The primary PHP file in "Irisnet API Client - AI child protection plugin" version 2.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 219 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("irisnet-api.php" instead of "irisnet-api-client.php")
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
Success! There were no dangerous files found in this plugin40,518 lines of code in 330 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 250 | 6,490 | 17,669 | 33,956 |
Markdown | 56 | 2,050 | 0 | 5,426 |
JSON | 11 | 0 | 0 | 898 |
XML | 4 | 1 | 0 | 133 |
YAML | 3 | 16 | 0 | 70 |
make | 2 | 11 | 0 | 31 |
SVG | 2 | 0 | 0 | 2 |
CSS | 1 | 1 | 1 | 1 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 14.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 154.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 28 | |
Interfaces | 27 | |
Traits | 3 | |
Classes | 200 | |
▷ Abstract classes | 1 | 0.50% |
▷ Concrete classes | 199 | 99.50% |
▷ Final classes | 38 | 19.10% |
Methods | 2,667 | |
▷ Static methods | 398 | 14.92% |
▷ Public methods | 2,414 | 90.51% |
▷ Protected methods | 47 | 1.76% |
▷ Private methods | 206 | 7.72% |
Functions | 571 | |
▷ Named functions | 57 | 9.98% |
▷ Anonymous functions | 514 | 90.02% |
Constants | 256 | |
▷ Global constants | 1 | 0.39% |
▷ Class constants | 255 | 99.61% |
▷ Public constants | 244 | 95.69% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin