89% kartenlegen-gpl

Code Review | Kartenlegen GPL

WordPress plugin Kartenlegen GPL scored 89% from 54 tests.

About plugin

  • Plugin page: kartenlegen-gpl
  • Plugin version: 2.0.5
  • PHP compatiblity: 5.8+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.6
  • WordPress version: 6.3.1
  • First release: Mar 21, 2020
  • Latest release: Jul 14, 2021
  • Number of updates: 12
  • Update frequency: every 40.1 days
  • Top authors: orakelsee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 516 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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Kartenlegen GPL
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.40 ▼2.41
Dashboard /wp-admin3.32 ▲0.0261.92 ▲13.50
Posts /wp-admin/edit.php3.37 ▲0.0247.01 ▲1.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.08 ▼13.57
Media Library /wp-admin/upload.php3.24 ▲0.0232.76 ▼2.07

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

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

Browser metrics Passed 4 tests

Kartenlegen GPL: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲16713.60 ▼0.785.48 ▲3.7641.44 ▲2.14
Dashboard /wp-admin2,206 ▲175.77 ▲0.80113.67 ▼5.7962.45 ▲15.83
Posts /wp-admin/edit.php2,086 ▼32.02 ▼0.0434.36 ▼17.0435.02 ▼21.33
Add New Post /wp-admin/post-new.php1,535 ▲223.42 ▲0.53663.83 ▲7.5063.76 ▲9.98
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0292.78 ▼13.9040.09 ▼4.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_kartenlegengpl
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Please fix the following attributes: Please take inspiration from this readme.txt

kartenlegen-gpl/kartenlegengpl.php 85% from 13 tests

The main file in "Kartenlegen GPL" v. 2.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.0.1" instead of "5.2")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kartenlegen-gpl.php" instead of "kartenlegengpl.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin787 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PO File10140145430
PHP41271250
JavaScript21171
CSS10036

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity11.00
▷ Minimum class complexity4.00
▷ Maximum class complexity18.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 are no PNG files in this plugin