78% narnoo-shortcodes

Code Review | Narnoo Operator

WordPress plugin Narnoo Operator scored78%from 54 tests.

About plugin

  • Plugin page: narnoo-shortcodes
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.6.1
  • WordPress version: 6.3.1
  • First release: Feb 6, 2020
  • Latest release: Feb 6, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: Narnoo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /407 total downloads

Benchmarks

Plugin footprint 83% from 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.03MB] [CPU: ▼4.82ms] Passed 4 tests

Server-side resources used by Narnoo Operator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.80 ▼0.60
Dashboard /wp-admin3.35 ▲0.0045.74 ▼11.93
Posts /wp-admin/edit.php3.40 ▲0.0444.24 ▲0.32
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.34 ▼7.06
Media Library /wp-admin/upload.php3.27 ▲0.0432.83 ▲2.42

Server storage [IO: ▲2.85MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Narnoo Operator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.19 ▼0.212.03 ▲0.5145.08 ▲3.43
Dashboard /wp-admin2,210 ▲415.58 ▼0.0596.44 ▼2.6272.78 ▲29.94
Posts /wp-admin/edit.php2,121 ▲181.99 ▼0.0534.91 ▼2.5931.92 ▼4.86
Add New Post /wp-admin/post-new.php1,693 ▲16722.40 ▼0.80708.77 ▲60.4260.61 ▲7.95
Media Library /wp-admin/upload.php1,415 ▲244.17 ▲0.0593.79 ▼3.1974.19 ▲27.82

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/narnoo-shortcodes/libs/narnoo_flip_book/pages/content.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Narnoo_Shortcodes' not found in wp-content/plugins/narnoo-shortcodes/libs/narnoo_single_gallery/single_gallery.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/narnoo-shortcodes/narnoo-shortcodes.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/narnoo-shortcodes/libs/html/help_info_tpl.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/narnoo-shortcodes/libs/narnoo_video_player/player.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Narnoo_Shortcodes' not found in wp-content/plugins/narnoo-shortcodes/libs/narnoo_slider/slider.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Narnoo_Shortcodes' not found in wp-content/plugins/narnoo-shortcodes/libs/narnoo_flip_book/flipbook.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Narnoo_Shortcodes' not found in wp-content/plugins/narnoo-shortcodes/libs/narnoo_products/display.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Narnoo_Shortcodes' not found in wp-content/plugins/narnoo-shortcodes/libs/narnoo_gallery/gallery.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% 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
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: Please add images for these screenshots: #1 (This screen shot shows you how you can see the tourism distributor's that are following your product media.), #2 (This screen shot shows you how you can interact with your images hosted on Narnoo.com. You can download the high resolution version, add the image to an album or delete the image from Narnoo.com), #3 (This screen shot shows you how you can interact with your videos hosted on Narnoo.com. You can download the high definition version or delete the video from Narnoo.com.), #4 (This screen shot shows you the short code menu option. We have 4 different image display options, 1 video display option and a brochure display option. All are easily embedded using the Narnoo short code menu.), #5 (This screen shot is an example of the slider image gallery.), #6 (All images have a large image file that is displayed in an lightbox.)
Please take inspiration from this readme.txt

narnoo-shortcodes/narnoo-shortcodes.php 92% from 13 tests

The main file in "Narnoo Operator" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin48,882 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript185,1023,91746,335
CSS133511011,134
PHP923194645
SVG100520
HTML2278131248

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.07
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods535.71%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.11MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-16.png0.75KB0.86KB0.00%
libs/narnoo_flip_book/img/icons.png45.67KB0.09KB▼ 99.79%
libs/narnoo_single_gallery/imagebox/images/sprite.png2.50KB2.45KB▼ 2.03%
libs/narnoo_flip_book/pages/logo.png1.88KB1.67KB▼ 11.21%
libs/narnoo_single_gallery/images/zoom.png0.52KB0.40KB▼ 22.89%