10% motivationstipps-zitate

Code Review | Dirk Schmidt Motivationstipp

WordPress plugin Dirk Schmidt Motivationstipp scored10%from 54 tests.

About plugin

  • Plugin page: motivationstipps-...
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Jul 3, 2015
  • Latest release: Jul 4, 2015
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: dirkschmidt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /785 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/motivationstipps-zitate/motivationstipp.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; motivations_tipp has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼54.86ms] Passed 4 tests

This is a short check of server-side resources used by Dirk Schmidt Motivationstipp
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.394.81 ▼33.98
Dashboard /wp-admin2.12 ▼1.216.01 ▼44.67
Posts /wp-admin/edit.php2.12 ▼1.276.74 ▼41.48
Add New Post /wp-admin/post-new.php2.12 ▼3.806.51 ▼99.29
Media Library /wp-admin/upload.php2.12 ▼1.145.96 ▼29.86

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_motivations_tipp
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Dirk Schmidt Motivationstipp
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.181.66 ▼0.1141.65 ▼0.72
Dashboard /wp-admin2,209 ▲204.86 ▼0.10104.49 ▼6.8638.54 ▼1.67
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0239.12 ▼2.7234.81 ▼1.35
Add New Post /wp-admin/post-new.php1,542 ▲1418.37 ▼4.68621.89 ▼31.0452.44 ▼11.23
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0294.93 ▲1.1842.35 ▲1.78

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/motivationstipps-zitate/motivationstipp.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; motivations_tipp has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_motivations_tipp
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/motivationstipps-zitate/motivationstipp.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% 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
Please fix the following attributes:
  • Donate link: Please fix this invalid url: "www.dirkschmidt.com"
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === motivationstipps-zitate === )
You can look at the official readme.txt

motivationstipps-zitate/motivationstipp.php 85% from 13 tests

The main file in "Dirk Schmidt Motivationstipp" v. 1... serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("motivationstipps-zitate.php" instead of "motivationstipp.php")
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin449 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22713438
CSS13111

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin