94% koalamint

Code Review | KoalaMint Plugin

WordPress plugin KoalaMint Plugin scored 94% from 54 tests.

About plugin

  • Plugin page: koalamint
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9
  • WordPress version: 5.9.2
  • First release: Feb 21, 2022
  • Latest release: Feb 21, 2022
  • Number of updates: 3
  • Update frequency: every 8.0 days
  • Top authors: koalamint (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 130 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼291.96ms] Passed 4 tests

An overview of server-side resources used by KoalaMint Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0256.96 ▲1.23
Dashboard /wp-admin3.43 ▲0.0239.86 ▲6.81
Posts /wp-admin/edit.php3.66 ▲0.0242.03 ▲3.89
Add New Post /wp-admin/post-new.php6.90 ▼0.0797.51 ▼1,179.75
Media Library /wp-admin/upload.php3.31 ▲0.0233.19 ▲7.57
KoalaMint Plugin /wp-admin/options-general.php?page=KoalaMintPlugin3.2822.23

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, no new options

Browser metrics Passed 4 tests

KoalaMint Plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,804 ▲8215.87 ▲0.196.42 ▲0.763.15 ▲0.92
Dashboard /wp-admin2,897 ▲366.13 ▼0.07118.48 ▼19.30157.33 ▼33.65
Posts /wp-admin/edit.php2,693 ▼13.23 ▼0.1364.97 ▲2.78200.80 ▲55.61
Add New Post /wp-admin/post-new.php1,755 ▼220.88 ▼1.07457.58 ▼17.68159.30 ▼6.43
Media Library /wp-admin/upload.php1,700 ▲55.55 ▲0.05160.02 ▼7.19190.12 ▼7.65
KoalaMint Plugin /wp-admin/options-general.php?page=KoalaMintPlugin1,1432.4258.02195.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% 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
8 plugin tags: blockchain, polygon, erc721, ethereum, mint...

koalamint/KoalaMintPlugin.php 85% from 13 tests

The principal PHP file in "KoalaMint Plugin" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.5" instead of "5.2")
  • Main file name: The principal plugin file should be the same as the plugin slug ("koalamint.php" instead of "KoalaMintPlugin.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 plugin110 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22451110

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for 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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin