84% koalamint

Code Review | KoalaMint Plugin

WordPress plugin KoalaMint Plugin scored84%from 54 tests.

About plugin

  • Plugin page: koalamint
  • Plugin version: 2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9
  • WordPress version: 6.3.1
  • First release: Feb 21, 2022
  • Latest release: May 18, 2022
  • Number of updates: 9
  • Update frequency: every 11.8 days
  • Top authors: koalamint (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,001 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.15ms] Passed 4 tests

This is a short check of server-side resources used by KoalaMint Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0139.34 ▼4.95
Dashboard /wp-admin3.37 ▼0.0248.69 ▼20.33
Posts /wp-admin/edit.php3.48 ▲0.0853.79 ▲4.47
Add New Post /wp-admin/post-new.php5.95 ▲0.0299.51 ▼9.84
Media Library /wp-admin/upload.php3.29 ▲0.0239.70 ▲2.54

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for KoalaMint Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8814.25 ▼0.032.15 ▲0.2438.35 ▼6.65
Dashboard /wp-admin2,211 ▲345.61 ▼0.0691.02 ▼8.0841.14 ▼6.99
Posts /wp-admin/edit.php2,119 ▲191.99 ▼0.0339.44 ▲5.3434.27 ▼1.01
Add New Post /wp-admin/post-new.php1,539 ▲1323.20 ▼0.34664.61 ▲10.5450.28 ▼1.05
Media Library /wp-admin/upload.php1,416 ▲164.24 ▲0.0698.25 ▼0.8741.68 ▼4.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/koalamint/KoalaMintPlugin.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: nft, ipfs, polygon, mint, erc721...

koalamint/KoalaMintPlugin.php 85% from 13 tests

Analyzing the main PHP file in "KoalaMint Plugin" version 2.0
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.5" instead of "5.2")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("koalamint.php" instead of "KoalaMintPlugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected109 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22451109

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin