90% koo-publisher

Code Review | Koo Publisher

WordPress plugin Koo Publisher scored90%from 54 tests.

About plugin

  • Plugin page: koo-publisher
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 25, 2022
  • Latest release: Jun 28, 2022
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: koodev (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /686 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
Install script ran successfully

Server metrics [RAM: ▼0.66MB] [CPU: ▼24.38ms] Passed 4 tests

Server-side resources used by Koo Publisher
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.34 ▼6.85
Dashboard /wp-admin3.37 ▲0.0247.27 ▼19.56
Posts /wp-admin/edit.php3.32 ▼0.0335.08 ▼15.48
Add New Post /wp-admin/post-new.php3.21 ▼2.6735.04 ▼55.63
Media Library /wp-admin/upload.php3.29 ▲0.0641.42 ▲6.69

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Koo Publisher
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8014.35 ▼0.382.03 ▲0.3041.75 ▲2.41
Dashboard /wp-admin2,210 ▲325.64 ▼0.0585.33 ▼18.1940.95 ▼2.24
Posts /wp-admin/edit.php2,127 ▲272.04 ▲0.0637.14 ▼2.2331.39 ▼2.96
Add New Post /wp-admin/post-new.php1,701 ▲16422.39 ▲4.28642.16 ▲26.8468.47 ▼10.50
Media Library /wp-admin/upload.php1,412 ▲94.25 ▲0.09100.30 ▼2.5641.66 ▼2.39

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: kooapp, koo

koo-publisher/koo_publisher.php 92% from 13 tests

The primary PHP file in "Koo Publisher" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("koo-publisher.php" instead of "koo_publisher.php")

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
Everything looks great! No dangerous files found in this plugin30,817 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JSON20030,353
PHP46636280
JavaScript21334175
SVG1009

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity9.33
▷ Minimum class complexity4.00
▷ Maximum class complexity16.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png28.42KB11.01KB▼ 61.25%