Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.25ms] Passed 4 tests
A check of server-side resources used by Narnoo Operator Connect
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.32 ▼9.48 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.44 ▼7.67 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.94 ▼2.02 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.85 ▼9.83 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.14 ▲3.52 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 138 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Narnoo Operator Connect
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 13.13 ▼1.61 | 4.90 ▲2.71 | 45.73 ▼3.01 |
Dashboard /wp-admin | 2,203 ▲15 | 5.87 ▲0.02 | 104.65 ▼10.88 | 44.43 ▲1.43 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.06 ▲0.02 | 40.76 ▼2.80 | 38.18 ▲1.67 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.36 ▲5.02 | 612.08 ▼43.17 | 47.48 ▼13.14 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.21 ▲0.01 | 95.96 ▼11.56 | 43.05 ▼2.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/narnoo-operator-connect/libs/narnoo-php-sdk/index.php
- 56× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/narnoo-operator-connect/class-narnoo-connect-search-operators-table.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/narnoo-operator-connect/libs/narnoo-php-sdk/vendor/guzzlehttp/psr7/src/Uri.php:13
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/narnoo-operator-connect/libs/narnoo-php-sdk/vendor/guzzlehttp/promises/src/AggregateException.php:7
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/narnoo-operator-connect/libs/narnoo-php-sdk/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
- > PHP Fatal error
Uncaught Error: Class 'Narnoo\\Base' not found in wp-content/plugins/narnoo-operator-connect/libs/narnoo-php-sdk/Narnoo/Access/Access.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/narnoo-operator-connect/classs-narnoo-operator-connect-categories-table.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/narnoo-operator-connect/libs/narnoo-php-sdk/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/narnoo-operator-connect/libs/narnoo-php-sdk/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Narnoo\\Base' not found in wp-content/plugins/narnoo-operator-connect/libs/narnoo-php-sdk/Narnoo/Media/Media.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/narnoo-operator-connect/libs/narnoo-php-sdk/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: ""
narnoo-operator-connect/narnoo-operator-connect.php Passed 13 tests
The principal PHP file in "Narnoo Operator Connect" v. 1.2.2 is loaded by WordPress automatically on each request
106 characters long description:
Allows Wordpress users to connect with other Narnoo products and import their listings into their website.
Code Analysis Passed 3 tests
File types Passed 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
No dangerous file extensions were detected14,110 lines of code in 125 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 108 | 2,360 | 5,447 | 10,583 |
Markdown | 10 | 927 | 0 | 3,124 |
JSON | 6 | 0 | 0 | 394 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 15.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 80 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 80 | 100.00% |
▷ Final classes | 7 | 8.75% |
Methods | 759 | |
▷ Static methods | 84 | 11.07% |
▷ Public methods | 646 | 85.11% |
▷ Protected methods | 7 | 0.92% |
▷ Private methods | 106 | 13.97% |
Functions | 144 | |
▷ Named functions | 57 | 39.58% |
▷ Anonymous functions | 87 | 60.42% |
Constants | 55 | |
▷ Global constants | 6 | 10.91% |
▷ Class constants | 49 | 89.09% |
▷ Public constants | 49 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-32.png | 1.88KB | 1.67KB | ▼ 11.21% |
images/icon-16.png | 0.75KB | 0.86KB | 0.00% |