84% kite-publisher

Code Review | Kite Publisher

WordPress plugin Kite Publisher scored84%from 54 tests.

About plugin

  • Plugin page: kite-publisher
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Dec 27, 2016
  • Latest release: Dec 27, 2016
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: zerodha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,296 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.30ms] Passed 4 tests

An overview of server-side resources used by Kite Publisher
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.19 ▼2.57
Dashboard /wp-admin3.33 ▲0.0240.78 ▼10.71
Posts /wp-admin/edit.php3.38 ▲0.0248.05 ▲3.70
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.95 ▼19.60
Media Library /wp-admin/upload.php3.25 ▲0.0234.68 ▼0.33

Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Kite Publisher
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲11013.35 ▼1.031.96 ▲0.2244.62 ▲1.12
Dashboard /wp-admin2,205 ▲206.03 ▲0.20113.84 ▲3.6342.63 ▼7.86
Posts /wp-admin/edit.php2,091 ▼12.03 ▲0.0238.46 ▲3.6535.16 ▲3.48
Add New Post /wp-admin/post-new.php1,539 ▲1818.28 ▼5.08598.39 ▼102.5351.82 ▼5.48
Media Library /wp-admin/upload.php1,390 ▲24.20 ▼0.0095.60 ▼6.4741.17 ▼5.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/kite-publisher/index.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: trade, share market, trading, invest, kite...

kite-publisher/index.php 92% from 13 tests

Analyzing the main PHP file in "Kite Publisher" version 1.0
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("kite-publisher.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected344 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1236258
PHP1155682
CSS1004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/editor-button.png31.46KB11.26KB▼ 64.20%
assets/editor-options.png38.03KB10.85KB▼ 71.47%
js/images/icon.png0.50KB0.27KB▼ 46.27%