89% kontur-font-o-mat

Code Review | kontur font-o-mat

WordPress plugin kontur font-o-mat scored89%from 54 tests.

About plugin

  • Plugin page: kontur-font-o-mat
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Jan 15, 2022
  • Latest release: May 9, 2023
  • Number of updates: 18
  • Update frequency: every 26.7 days
  • Top authors: netzaufsicht (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /885 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▲3.44ms] Passed 4 tests

Analyzing server-side resources used by kontur font-o-mat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.04 ▲6.94
Dashboard /wp-admin3.41 ▲0.1150.85 ▲2.94
Posts /wp-admin/edit.php3.46 ▲0.1148.33 ▲0.70
Add New Post /wp-admin/post-new.php6.01 ▲0.1294.39 ▲6.39
Media Library /wp-admin/upload.php3.34 ▲0.1138.78 ▲3.73
kontur Font-o-Mat /wp-admin/options-general.php?page=kontur-font-o-mat-option3.3350.27

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

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

Browser metrics Passed 4 tests

kontur font-o-mat: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲3813.21 ▼1.181.66 ▼0.0640.56 ▼3.31
Dashboard /wp-admin2,213 ▲284.85 ▼1.01101.15 ▲0.7440.60 ▼4.88
Posts /wp-admin/edit.php2,090 ▲12.04 ▲0.0034.75 ▼0.5231.06 ▼6.07
Add New Post /wp-admin/post-new.php1,685 ▲14621.92 ▲3.46615.95 ▼30.5758.99 ▼12.72
Media Library /wp-admin/upload.php1,392 ▲44.16 ▼0.0994.72 ▼14.6541.41 ▼2.74
kontur Font-o-Mat /wp-admin/options-general.php?page=kontur-font-o-mat-option2,6182.2548.02174.14

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

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

Smoke tests Passed 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 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 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

kontur-font-o-mat/kontur-font-o-mat.php 92% from 13 tests

The primary PHP file in "kontur font-o-mat" version 1.1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 315 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected5,359 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
CSS4916283,660
PHP7297182896
JavaScript134959660
Sass2341140
SVG3003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity9.25
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods27
▷ Static methods518.52%
▷ Public methods2385.19%
▷ Protected methods00.00%
▷ Private methods414.81%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants450.00%
▷ Class constants450.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.37MB with 0.25MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/kontur_font-o-mat_gutenberg_font-family.png53.46KB13.65KB▼ 74.47%
admin/img/werbekontur_font-o-mat.png324.22KB125.24KB▼ 61.37%