84% kagg-compatibility

Code Review | KAGG Compatibility

WordPress plugin KAGG Compatibility scored84%from 54 tests.

About plugin

  • Plugin page: kagg-compatibility
  • Plugin version: 1.3.0
  • PHP compatiblity: 8.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Feb 15, 2022
  • Latest release: Aug 2, 2023
  • Number of updates: 6
  • Update frequency: every 88.8 days
  • Top authors: kaggdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /948 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by KAGG Compatibility
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0046.47 ▲2.16
Dashboard /wp-admin3.31 ▲0.0046.18 ▼3.82
Posts /wp-admin/edit.php3.36 ▲0.0051.16 ▲4.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.48 ▼0.91
Media Library /wp-admin/upload.php3.23 ▲0.0037.96 ▼0.03

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for KAGG Compatibility
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.171.72 ▼0.1741.89 ▲4.13
Dashboard /wp-admin2,206 ▲214.84 ▼1.06108.57 ▲0.6942.23 ▼1.52
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0639.84 ▼1.3834.88 ▼3.44
Add New Post /wp-admin/post-new.php1,514 ▼1917.59 ▼5.40603.91 ▼8.7450.46 ▼6.42
Media Library /wp-admin/upload.php1,385 ▼34.18 ▼0.0197.14 ▲0.9145.87 ▲4.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/kagg-compatibility/src/php/kagg-compatibility-error-handler.php on line 35
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/kagg-compatibility/src/php/kagg-compatibility-error-handler.php on line 34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function KAGG\\Compatibility\\add_action() in wp-content/plugins/kagg-compatibility/src/php/kagg-compatibility-error-handler.php:60
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/kagg-compatibility/src/php/kagg-compatibility-error-handler.php on line 34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: php 81, compatibility, deprecation, notice, development

kagg-compatibility/plugin.php 85% from 13 tests

The entry point to "KAGG Compatibility" version 1.3.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("kagg-compatibility.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin784 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP13208571779
JSON1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity17.14
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods58
▷ Static methods1932.76%
▷ Public methods4984.48%
▷ Protected methods11.72%
▷ Private methods813.79%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.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 are no PNG files in this plugin