84% kein-web-fuer-nazis

Code Review | Kein Web Für Nazis Banner

WordPress plugin Kein Web Für Nazis Banner scored84%from 54 tests.

About plugin

  • Plugin page: kein-web-fuer-nazis
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: Nov 12, 2019
  • Latest release: Nov 18, 2019
  • Number of updates: 4
  • Update frequency: every 35.3 days
  • Top authors: hatework (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /387 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Kein Web Für Nazis Banner
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0035.99 ▼6.94
Dashboard /wp-admin3.35 ▲0.0051.40 ▼6.89
Posts /wp-admin/edit.php3.40 ▲0.0052.52 ▲0.22
Add New Post /wp-admin/post-new.php5.93 ▲0.0095.06 ▲2.87
Media Library /wp-admin/upload.php3.27 ▲0.0038.79 ▲3.97

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Kein Web Für Nazis Banner: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.38 ▲0.022.16 ▲0.4240.58 ▼3.49
Dashboard /wp-admin2,195 ▲185.63 ▲0.0690.78 ▼12.4441.58 ▼7.28
Posts /wp-admin/edit.php2,103 ▲31.96 ▼0.0539.09 ▲1.0537.35 ▲1.50
Add New Post /wp-admin/post-new.php1,528 ▼023.14 ▲0.03593.45 ▼70.1354.13 ▼1.17
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.0197.65 ▼2.5344.08 ▼1.96

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kein-web-fuer-nazis/keinwebfuernazis.php:35

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: keinwebfrnazis, fckafd

kein-web-fuer-nazis/keinwebfuernazis.php 92% from 13 tests

"Kein Web Für Nazis Banner" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("kein-web-fuer-nazis.php" instead of "keinwebfuernazis.php")

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 detected125 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS165118
PHP19197

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin