83% bildquellen-copyright-statement

Code Review | Bildquellenangaben

WordPress plugin Bildquellenangaben scored 83% from 54 tests.

About plugin

  • Plugin page: bildquellen-copyr...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2
  • WordPress version: 6.3.1
  • First release: Aug 1, 2015
  • Latest release: Aug 1, 2015
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: jabbadu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,598 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.94ms] Passed 4 tests

A check of server-side resources used by Bildquellenangaben
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.94 ▼4.07
Dashboard /wp-admin3.32 ▲0.0149.40 ▲1.09
Posts /wp-admin/edit.php3.37 ▲0.0145.81 ▼3.45
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.53 ▲2.69
Media Library /wp-admin/upload.php3.24 ▲0.0139.11 ▲5.13

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
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

Bildquellenangaben: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.63 ▲0.314.96 ▲0.7743.62 ▼6.16
Dashboard /wp-admin2,206 ▲154.88 ▼0.02107.62 ▼0.5039.89 ▼5.44
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0239.68 ▼1.1335.56 ▼0.44
Add New Post /wp-admin/post-new.php1,514 ▼1917.37 ▼5.90680.12 ▲19.5367.27 ▲9.06
Media Library /wp-admin/upload.php1,388 ▲64.26 ▲0.1094.18 ▼3.6342.86 ▼1.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bildquellen-copyright-statement/bildquellen.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Textfeld für Quellenangaben in der Mediathek)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === bildquellen-copyright-statement === )
The official readme.txt is a good inspiration

bildquellen-copyright-statement/bildquellen.php 92% from 13 tests

The entry point to "Bildquellenangaben" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("bildquellen-copyright-statement.php" instead of "bildquellen.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin57 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP291557

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected