78% narnoo-operator-connect

Code Review | Narnoo Operator Connect

WordPress plugin Narnoo Operator Connect scored 78% from 54 tests.

About plugin

  • Plugin page: narnoo-operator-c...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.2.0
  • WordPress version: 6.3.1
  • First release: Aug 22, 2018
  • Latest release: May 13, 2019
  • Number of updates: 8
  • Update frequency: every 33.1 days
  • Top authors: Narnoo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 616 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.32 ▼9.48
Dashboard /wp-admin3.31 ▲0.0044.44 ▼7.67
Posts /wp-admin/edit.php3.36 ▲0.0045.94 ▼2.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.85 ▼9.83
Media Library /wp-admin/upload.php3.23 ▲0.0036.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.13 ▼1.614.90 ▲2.7145.73 ▼3.01
Dashboard /wp-admin2,203 ▲155.87 ▲0.02104.65 ▼10.8844.43 ▲1.43
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0240.76 ▼2.8038.18 ▲1.67
Add New Post /wp-admin/post-new.php1,533 ▼923.36 ▲5.02612.08 ▼43.1747.48 ▼13.14
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0195.96 ▼11.5643.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

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: ""
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP1082,3605,44710,583
Markdown1092703,124
JSON600394
make1409

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 code0.43
Average class complexity15.23
▷ Minimum class complexity1.00
▷ Maximum class complexity104.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces16
Interfaces14
Traits2
Classes80
▷ Abstract classes00.00%
▷ Concrete classes80100.00%
▷ Final classes78.75%
Methods759
▷ Static methods8411.07%
▷ Public methods64685.11%
▷ Protected methods70.92%
▷ Private methods10613.97%
Functions144
▷ Named functions5739.58%
▷ Anonymous functions8760.42%
Constants55
▷ Global constants610.91%
▷ Class constants4989.09%
▷ Public constants49100.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
FileSize - originalSize - compressedSavings
images/icon-32.png1.88KB1.67KB▼ 11.21%
images/icon-16.png0.75KB0.86KB0.00%