84% meinungsmeister

Code Review | Meinungsmeister

WordPress plugin Meinungsmeister scored84%from 54 tests.

About plugin

  • Plugin page: meinungsmeister
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.7
  • WordPress version: 6.3.1
  • First release: Oct 4, 2016
  • Latest release: May 9, 2018
  • Number of updates: 11
  • Update frequency: every 53.4 days
  • Top authors: meinungsmeister (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,578 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.86ms] Passed 4 tests

Analyzing server-side resources used by Meinungsmeister
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.85 ▼10.14
Dashboard /wp-admin3.36 ▲0.0144.18 ▼9.39
Posts /wp-admin/edit.php3.47 ▲0.1147.24 ▲2.29
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.88 ▼4.73
Media Library /wp-admin/upload.php3.28 ▲0.0532.70 ▲0.84
Meinungsmeister /wp-admin/options-general.php?page=meinungsmeister3.2432.28

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

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

Browser metrics Passed 4 tests

Meinungsmeister: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.44 ▼0.941.82 ▲0.1641.76 ▲2.82
Dashboard /wp-admin2,210 ▲184.87 ▼0.17104.48 ▼2.5137.47 ▼1.35
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0239.02 ▲2.8633.86 ▼0.94
Add New Post /wp-admin/post-new.php1,540 ▲823.23 ▼0.11629.76 ▲20.9158.07 ▲3.40
Media Library /wp-admin/upload.php1,392 ▲74.24 ▼0.01103.95 ▼5.7844.87 ▼4.31
Meinungsmeister /wp-admin/options-general.php?page=meinungsmeister8131.7026.6028.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/meinungsmeister/meinungsmeister.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === meinungsmeister === )
The official readme.txt might help

meinungsmeister/meinungsmeister.php 92% from 13 tests

The principal PHP file in "Meinungsmeister" v. 1.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected196 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25733196

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1473.68%
▷ Protected methods00.00%
▷ Private methods526.32%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.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
PNG images were not found in this plugin