Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.25MB] [CPU: ▲7.10ms] Passed 4 tests
Server-side resources used by Narnoo Operator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 46.29 ▲3.85 |
Dashboard /wp-admin | 3.57 ▲0.27 | 58.25 ▲8.49 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 62.39 ▲10.71 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 96.24 ▲5.33 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 45.39 ▲12.00 |
Add New /wp-admin/post-new.php?post_type=narnoo_product | 3.41 | 39.98 |
Images /wp-admin/admin.php?page=narnoo-operator-images | 3.44 | 41.54 |
Narnoo /wp-admin/admin.php?page=narnoo-operator-followers | 3.51 | 40.97 |
Narnoo API /wp-admin/options-general.php?page=narnoo-operator-api-settings | 3.43 | 39.87 |
Products /wp-admin/edit.php?post_type=narnoo_product | 3.52 | 46.53 |
Albums /wp-admin/admin.php?page=narnoo-operator-albums | 3.36 | 34.06 |
Videos /wp-admin/admin.php?page=narnoo-operator-videos | 3.44 | 37.99 |
Products /wp-admin/admin.php?page=narnoo-operator-products | 3.44 | 40.93 |
Print /wp-admin/admin.php?page=narnoo-operator-brochures | 3.44 | 38.56 |
Server storage [IO: ▲4.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 800 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Narnoo Operator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲122 | 14.38 ▼0.21 | 1.73 ▲0.03 | 42.71 ▼0.56 |
Dashboard /wp-admin | 2,286 ▲106 | 5.74 ▲0.05 | 86.06 ▼0.89 | 69.94 ▲31.02 |
Posts /wp-admin/edit.php | 2,194 ▲94 | 2.38 ▲0.36 | 35.27 ▼2.36 | 35.51 ▲0.40 |
Add New Post /wp-admin/post-new.php | 1,606 ▲74 | 23.44 ▼0.20 | 752.47 ▲72.36 | 63.17 ▲10.38 |
Media Library /wp-admin/upload.php | 1,491 ▲94 | 4.46 ▲0.25 | 107.44 ▼3.68 | 83.05 ▲33.84 |
Add New /wp-admin/post-new.php?post_type=narnoo_product | 3,294 | 9.58 | 262.90 | 147.37 |
Images /wp-admin/admin.php?page=narnoo-operator-images | 1,036 | 1.86 | 27.54 | 31.81 |
Narnoo /wp-admin/admin.php?page=narnoo-operator-followers | 878 | 1.84 | 28.96 | 26.55 |
Narnoo API /wp-admin/options-general.php?page=narnoo-operator-api-settings | 922 | 1.84 | 29.12 | 29.98 |
Products /wp-admin/edit.php?post_type=narnoo_product | 1,176 | 2.20 | 34.51 | 32.55 |
Albums /wp-admin/admin.php?page=narnoo-operator-albums | 1,047 | 1.87 | 30.17 | 30.67 |
Videos /wp-admin/admin.php?page=narnoo-operator-videos | 1,039 | 1.86 | 30.20 | 30.62 |
Products /wp-admin/admin.php?page=narnoo-operator-products | 1,035 | 1.87 | 32.72 | 28.89 |
Print /wp-admin/admin.php?page=narnoo-operator-brochures | 1,036 | 1.86 | 28.37 | 30.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'NarnooOperator' not found
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=narnoo_product
- > Notice in wp-content/plugins/narnoo-operator-plugin/narnoo-operator.php+1462
Undefined index: check_meta
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=narnoo-operator-brochures
- > Notice in wp-content/plugins/narnoo-operator-plugin/libs/cache/phpfastcache/3.0.0/phpfastcache.php+159
Undefined index: securityKey
- > GET request to /wp-admin/post-new.php?post_type=narnoo_product
- > Notice in wp-content/plugins/narnoo-operator-plugin/libs/cache/phpfastcache/3.0.0/phpfastcache.php+202
Undefined index: default_chmod
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=narnoo-operator-brochures
- > Notice in wp-content/plugins/narnoo-operator-plugin/libs/cache/phpfastcache/3.0.0/phpfastcache.php+193
Undefined index: htaccess
- > GET request to /wp-admin/post-new.php?post_type=narnoo_product
- > Notice in wp-content/plugins/narnoo-operator-plugin/narnoo-operator.php+955
Undefined variable: list
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=narnoo-operator-brochures
- > Notice in wp-content/plugins/narnoo-operator-plugin/class-narnoo-operator-brochures-table.php+407
Trying to get property 'data' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=narnoo-operator-albums
- > Notice in wp-content/plugins/narnoo-operator-plugin/class-narnoo-operator-albums-table.php+143
Trying to get property 'albums' of non-object
- > GET request to /wp-admin/post-new.php?post_type=narnoo_product
- > Warning in wp-content/plugins/narnoo-operator-plugin/narnoo-operator.php+955
Invalid argument supplied for foreach()
- > GET request to /wp-admin/admin.php?page=narnoo-operator-images
- > Notice in wp-content/plugins/narnoo-operator-plugin/class-narnoo-operator-images-table.php+649
Trying to get property 'images' of non-object
- > GET request to /wp-admin/admin.php?page=narnoo-operator-followers
- > Notice in wp-content/plugins/narnoo-operator-plugin/libs/html/help_info_tpl.php+5
Undefined index: action
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=narnoo-operator-api-settings
- > Notice in wp-content/plugins/narnoo-operator-plugin/narnoo-operator.php+519
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=narnoo-operator-videos
- > Notice in wp-content/plugins/narnoo-operator-plugin/class-narnoo-operator-videos-table.php+205
Trying to get property 'videos' of non-object
- > GET request to /wp-admin/admin.php?page=narnoo-operator-products
- > Notice in wp-content/plugins/narnoo-operator-plugin/class-narnoo-operator-products-table.php+188
Trying to get property 'products' of non-object
- > GET request to /wp-admin/admin.php?page=narnoo-operator-brochures
- > Notice in wp-content/plugins/narnoo-operator-plugin/class-narnoo-operator-brochures-table.php+407
Trying to get property 'prints' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 7× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/narnoo-operator-plugin/libs/narnoo-php-sdk/Narnoo/Authenticate/Authenticate.php
- > /wp-content/plugins/narnoo-operator-plugin/libs/narnoo-php-sdk/Narnoo/Booking/Booking.php
- > /wp-content/plugins/narnoo-operator-plugin/libs/narnoo-php-sdk/Narnoo/Business/Business.php
- > /wp-content/plugins/narnoo-operator-plugin/libs/narnoo-php-sdk/Narnoo/Connect/Connect.php
- > /wp-content/plugins/narnoo-operator-plugin/libs/narnoo-php-sdk/Narnoo/Product/Product.php
- > /wp-content/plugins/narnoo-operator-plugin/libs/narnoo-php-sdk/Narnoo/Access/Access.php
- > /wp-content/plugins/narnoo-operator-plugin/libs/narnoo-php-sdk/Narnoo/Media/Media.php
- 353× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/narnoo-operator-plugin/libs/narnoo-php-sdk/vendor/guzzlehttp/psr7/src/Request.php:12
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/narnoo-operator-plugin/libs/cache/phpfastcache/_extensions/predis-1.0/src/Command/ServerBackgroundRewriteAOF.php:18
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\KeyTimeToLive' not found in wp-content/plugins/narnoo-operator-plugin/libs/cache/phpfastcache/_extensions/predis-1.0/src/Command/KeyPreciseTimeToLive.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Predis\\Response\\ErrorInterface' not found in wp-content/plugins/narnoo-operator-plugin/libs/cache/phpfastcache/_extensions/predis-1.0/src/Response/Error.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/narnoo-operator-plugin/libs/narnoo-php-sdk/vendor/guzzlehttp/psr7/src/FnStream.php:12
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/narnoo-operator-plugin/libs/cache/phpfastcache/_extensions/predis-1.0/src/Command/ServerMonitor.php:18
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/narnoo-operator-plugin/libs/cache/phpfastcache/_extensions/predis-1.0/src/Command/HyperLogLogMerge.php:18
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/narnoo-operator-plugin/libs/cache/phpfastcache/_extensions/predis-1.0/src/Command/SetCardinality.php:18
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/narnoo-operator-plugin/libs/cache/phpfastcache/_extensions/predis-1.0/src/Command/SetIntersectionStore.php:18
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/narnoo-operator-plugin/libs/cache/phpfastcache/_extensions/predis-1.0/src/Command/PubSubPubsub.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in narnoo-operator-plugin/assets to your readme.txt
- Donate link: Please fix this invalid url: ""
narnoo-operator-plugin/narnoo-operator.php 85% from 13 tests
The main PHP script in "Narnoo Operator" version 2.2.2 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("narnoo-operator-plugin.php" instead of "narnoo-operator.php")
- Description: Keep the plugin description shorter than 140 characters (currently 252 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin80,969 lines of code in 640 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 465 | 8,741 | 20,193 | 30,066 |
CSS | 18 | 10,569 | 1,411 | 11,920 |
Markdown | 17 | 1,544 | 0 | 4,814 |
JavaScript | 9 | 328 | 508 | 1,386 |
JSON | 7 | 0 | 0 | 425 |
INI | 1 | 6 | 6 | 24 |
make | 1 | 4 | 0 | 9 |
HTML | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 9.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 33 | |
Interfaces | 40 | |
Traits | 2 | |
Classes | 399 | |
▷ Abstract classes | 20 | 5.01% |
▷ Concrete classes | 379 | 94.99% |
▷ Final classes | 8 | 2.11% |
Methods | 2,356 | |
▷ Static methods | 201 | 8.53% |
▷ Public methods | 1,943 | 82.47% |
▷ Protected methods | 274 | 11.63% |
▷ Private methods | 139 | 5.90% |
Functions | 201 | |
▷ Named functions | 97 | 48.26% |
▷ Anonymous functions | 104 | 51.74% |
Constants | 88 | |
▷ Global constants | 13 | 14.77% |
▷ Class constants | 75 | 85.23% |
▷ Public constants | 75 | 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
16 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/CMB2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
libs/CMB2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
libs/CMB2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
images/icon-16.png | 0.75KB | 0.86KB | 0.00% |
libs/CMB2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |