10% juratext-importer-fur-rechtstexte24

Code Review | JuraText-Importer für rechtstexte24

WordPress plugin JuraText-Importer für rechtstexte24 scored10%from 54 tests.

About plugin

  • Plugin page: juratext-importer...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Aug 26, 2016
  • Latest release: Sep 6, 2016
  • Number of updates: 70
  • Update frequency: every 0.2 days
  • Top authors: jonahivert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,270 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/juratext-importer-fur-rechtstexte24/extClasses/Crypt/Hash.php+85
    Methods with the same name as their class will not be constructors in a future version of PHP; Crypt_Hash has a deprecated constructor

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

An overview of server-side resources used by JuraText-Importer für rechtstexte24
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.08 ▼0.92
Dashboard /wp-admin3.33 ▲0.0253.66 ▲5.08
Posts /wp-admin/edit.php3.44 ▲0.0850.48 ▲3.76
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.75 ▼0.67
Media Library /wp-admin/upload.php3.25 ▲0.0236.53 ▲1.10

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 67 new files
Database: 2 new tables, 6 new options
New tables
wp_rechtstext
wp_juracms_kunde
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by JuraText-Importer für rechtstexte24
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.28 ▼1.151.64 ▼0.0345.18 ▲1.59
Dashboard /wp-admin2,218 ▲274.85 ▼0.06106.53 ▲1.4442.38 ▼2.54
Posts /wp-admin/edit.php2,101 ▲122.01 ▼0.0541.00 ▲0.7435.24 ▼1.76
Add New Post /wp-admin/post-new.php1,524 ▼917.59 ▼5.54603.38 ▲6.6060.74 ▲9.98
Media Library /wp-admin/upload.php1,400 ▲124.22 ▲0.0695.27 ▼6.6041.33 ▼5.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/juratext-importer-fur-rechtstexte24/admin/partials/juracmsplugin-admin-display.php:39
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/juratext-importer-fur-rechtstexte24/admin/partials/juracmsplugin-admin-display.php on line 37

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)
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === juratext-importer-fur-rechtstexte24 === )
  • Screenshots: No descriptions were found for these screenshots #2, #3, #4 in juratext-importer-fur-rechtstexte24/assets to your readme.txt
The official readme.txt might help

juratext-importer-fur-rechtstexte24/juracmsplugin.php 85% from 13 tests

The main PHP script in "JuraText-Importer für rechtstexte24" version 1.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("juratext-importer-fur-rechtstexte24.php" instead of "juracmsplugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected11,314 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
PHP201,3414,8956,389
Sass24114342,122
CSS2670241,892
SVG100685
HTML340141
JavaScript216285

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity71.13
▷ Minimum class complexity1.00
▷ Maximum class complexity363.00
Average method complexity5.68
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods225
▷ Static methods41.78%
▷ Public methods22198.22%
▷ Protected methods00.00%
▷ Private methods41.78%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants79
▷ Global constants79100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icons/logo.png9.01KB4.29KB▼ 52.38%