84% meintopf

Code Review | mEintopf

WordPress plugin mEintopf scored84%from 54 tests.

About plugin

  • Plugin page: meintopf
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 10, 2013
  • Latest release: Mar 10, 2013
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: tiefpunkt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /761 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.09MB] [CPU: ▼2.97ms] Passed 4 tests

This is a short check of server-side resources used by mEintopf
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0933.89 ▼6.72
Dashboard /wp-admin3.39 ▲0.0944.02 ▼6.57
Posts /wp-admin/edit.php3.50 ▲0.1547.96 ▼0.24
Add New Post /wp-admin/post-new.php5.97 ▲0.0897.49 ▲6.05
Media Library /wp-admin/upload.php3.31 ▲0.0836.80 ▲1.64
Stream /wp-admin/admin.php?page=meintopf3.2832.21
Feeds /wp-admin/admin.php?page=feeds3.2830.62

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

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

Browser metrics Passed 4 tests

A check of browser resources used by mEintopf
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.35 ▼0.941.65 ▼0.1940.42 ▼5.95
Dashboard /wp-admin2,238 ▲474.83 ▼1.07108.25 ▲3.7841.18 ▼1.44
Posts /wp-admin/edit.php2,124 ▲351.99 ▲0.0239.88 ▲2.8234.92 ▲0.46
Add New Post /wp-admin/post-new.php1,569 ▲4118.08 ▼5.09594.26 ▼77.8663.48 ▲11.71
Media Library /wp-admin/upload.php1,423 ▲324.23 ▲0.0195.06 ▼11.8641.20 ▼2.78
Stream /wp-admin/admin.php?page=meintopf8842.1036.0726.63
Feeds /wp-admin/admin.php?page=feeds8282.1925.0434.41

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_meintopf_following_widget
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • meintopf_options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/meintopf/templates/following_widget.php:1
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/meintopf/meintopf.php on line 12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/meintopf/templates/reposts.php:3
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/feed.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/meintopf/meintopf.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meintopf/Meintopf_Following_Widget.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meintopf/Meintopf_Following_Widget.class.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/meintopf/templates/reader.php:51
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/meintopf/meintopf.php on line 12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/meintopf/templates/base.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/meintopf/templates/feeds.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in meintopf/assets to your readme.txt
You can take inspiration from this readme.txt

meintopf/meintopf.php Passed 13 tests

The main PHP script in "mEintopf" version 0.2.1 is automatically included on every request by WordPress
26 characters long description:
soup.io for the real world

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
No dangerous file extensions were detected2,102 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22962111,548
PHP972124493
CSS210061

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin