10% contentde

Code Review | content.de Wordpress-Plugin

WordPress plugin content.de Wordpress-Plugin scored10%from 54 tests.

About plugin

  • Plugin page: contentde
  • Plugin version: 1.0.18
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.3
  • WordPress version: 6.3.1
  • First release: Sep 24, 2012
  • Latest release: Sep 13, 2023
  • Number of updates: 98
  • Update frequency: every 40.9 days
  • Top authors: content.de (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /8,221 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > User error in wp-content/plugins/contentde/php/contentdeController.php+210
    Es kann keine Verbindung zum content.de Server hergestellt werden.Bitte stellen Sie sicher, dass PHP und die Module SOAP bzw. xmlrpc installiert, aktiviert und richtig konfiguriert sind.Folgender Fehler ist aufgetreten: there is no possible rpc module; php module "xmlrpc" is not installed or activated; php module "soap" is not installed or activated

Server metrics [RAM: ▲0.33MB] [CPU: ▼0.37ms] Passed 4 tests

Analyzing server-side resources used by content.de Wordpress-Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3741.62 ▼3.49
Dashboard /wp-admin3.67 ▲0.3648.85 ▲2.00
Posts /wp-admin/edit.php3.72 ▲0.3651.69 ▲0.02
Add New Post /wp-admin/post-new.php6.19 ▲0.3091.03 ▼0.02
Media Library /wp-admin/upload.php3.53 ▲0.3038.79 ▲3.12

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for content.de Wordpress-Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲5613.24 ▼0.761.63 ▼0.5440.39 ▼4.65
Dashboard /wp-admin2,207 ▲195.88 ▲1.02101.67 ▼4.5278.16 ▲30.79
Posts /wp-admin/edit.php2,108 ▲191.98 ▼0.0739.50 ▼0.9634.84 ▼3.18
Add New Post /wp-admin/post-new.php1,679 ▲14322.16 ▼1.01630.51 ▲25.3543.02 ▼6.13
Media Library /wp-admin/upload.php1,404 ▲134.16 ▼0.0698.12 ▼5.1343.88 ▼0.09

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

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
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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/contentde/contentde.php:61

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (35 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

contentde/contentde.php Passed 13 tests

The main file in "content.de Wordpress-Plugin" v. 1.0.18 serves as a complement to information provided in readme.txt and as the entry point to the plugin
72 characters long description:
Verwalten Sie Ihre content.de Aufträge direkt aus Wordpress heraus.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected3,311 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP175909232,632
JavaScript410862555
CSS3360124

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity15.91
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes19.09%
▷ Concrete classes1090.91%
▷ Final classes00.00%
Methods132
▷ Static methods4634.85%
▷ Public methods11284.85%
▷ Protected methods00.00%
▷ Private methods2015.15%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants32
▷ Global constants2784.38%
▷ Class constants515.62%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected