73% staatsverschuldung-schuldenuhr-brd

Code Review | ITSecMedia BRD Schuldenuhr

WordPress plugin ITSecMedia BRD Schuldenuhr scored73%from 54 tests.

About plugin

  • Plugin page: staatsverschuldun...
  • Plugin version: 1.0.00
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-4.6
  • WordPress version: 6.3.1
  • First release: Apr 14, 2015
  • Latest release: Sep 25, 2016
  • Number of updates: 12
  • Update frequency: every 44.2 days
  • Top authors: ITSecMedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,046 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼1.72MB] [CPU: ▼54.04ms] Passed 4 tests

A check of server-side resources used by ITSecMedia BRD Schuldenuhr
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.1810.76 ▼30.79
Dashboard /wp-admin2.29 ▼1.0515.51 ▼58.30
Posts /wp-admin/edit.php2.30 ▼1.0610.38 ▼38.33
Add New Post /wp-admin/post-new.php2.30 ▼3.5910.51 ▼88.75
Media Library /wp-admin/upload.php2.30 ▼0.9311.77 ▼24.44

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

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

Browser metrics Passed 4 tests

ITSecMedia BRD Schuldenuhr: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.80 ▼0.579.68 ▲7.5043.95 ▲2.16
Dashboard /wp-admin2,195 ▲185.56 ▼0.1094.86 ▼4.0344.36 ▲2.30
Posts /wp-admin/edit.php2,103 ▲61.99 ▲0.0039.33 ▲2.9536.90 ▲1.88
Add New Post /wp-admin/post-new.php1,526 ▼223.49 ▲0.30658.65 ▼32.9453.92 ▲1.60
Media Library /wp-admin/upload.php1,397 ▼34.21 ▲0.05104.29 ▼10.6644.39 ▼4.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in ISM_schuldenuhr_widget is deprecated since version 4.3.0! Use __construct() instead.
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_ism_schuldenuhr_widget
    • db_upgraded
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/staatsverschuldung-schuldenuhr-brd/ism-schuldenuhr.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (An example of the live BRD Schuldenuhr Widget, (screenshot-1.png)), #2 (The settings screen in wp-admin/widgets.php. (screenshot-2.png))
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

staatsverschuldung-schuldenuhr-brd/ism-schuldenuhr.php 92% from 13 tests

The main PHP script in "ITSecMedia BRD Schuldenuhr" version 1.0.00 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("staatsverschuldung-schuldenuhr-brd.php" instead of "ism-schuldenuhr.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin252 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1456898
JavaScript1172694
LESS12028
CSS10026
JSON1106

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png19.83KB6.89KB▼ 65.28%
screenshot-2.png12.20KB5.10KB▼ 58.21%