84% mein-seh-check

Code Review | Mein Seh-Check

WordPress plugin Mein Seh-Check scored84%from 54 tests.

About plugin

  • Plugin page: mein-seh-check
  • Plugin version: 0.6.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.3
  • WordPress version: 6.3.1
  • First release: Feb 22, 2023
  • Latest release: Aug 18, 2023
  • Number of updates: 7
  • Update frequency: every 29.4 days
  • Top authors: sehcheck (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /237 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.48MB] [CPU: ▼0.71ms] Passed 4 tests

A check of server-side resources used by Mein Seh-Check
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.00 ▲0.5348.31 ▲6.87
Dashboard /wp-admin3.83 ▲0.4857.34 ▼8.56
Posts /wp-admin/edit.php3.88 ▲0.5257.01 ▲8.33
Add New Post /wp-admin/post-new.php6.34 ▲0.45102.49 ▼6.67
Media Library /wp-admin/upload.php3.69 ▲0.4545.76 ▲5.51

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 104 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Mein Seh-Check
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.44 ▼0.151.75 ▼0.0441.82 ▲0.48
Dashboard /wp-admin2,195 ▲185.61 ▼0.0297.30 ▲0.9541.34 ▼6.98
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0140.31 ▲1.9135.38 ▲1.28
Add New Post /wp-admin/post-new.php6,366 ▲4,83827.57 ▲4.44887.56 ▲163.6967.10 ▲13.69
Media Library /wp-admin/upload.php1,400 ▼04.14 ▼0.03100.79 ▼15.6641.21 ▼11.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 29× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\WriterInterface' not found in wp-content/plugins/mein-seh-check/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReplacingWriter.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\ReaderInterface' not found in wp-content/plugins/mein-seh-check/vendor/vlucas/phpdotenv/src/Repository/Adapter/AdapterInterface.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PhpOption\\Option' not found in wp-content/plugins/mein-seh-check/vendor/phpoption/phpoption/src/PhpOption/None.php:26
    • > PHP Fatal error
      Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/mein-seh-check/vendor/symfony/polyfill-php80/PhpToken.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Dotenv\\Exception\\ExceptionInterface' not found in wp-content/plugins/mein-seh-check/vendor/vlucas/phpdotenv/src/Exception/ValidationException.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mein-seh-check/meinsehcheck-wp.php:80
    • > PHP Fatal error
      Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\AdapterInterface' not found in wp-content/plugins/mein-seh-check/vendor/vlucas/phpdotenv/src/Repository/Adapter/ArrayAdapter.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\WriterInterface' not found in wp-content/plugins/mein-seh-check/vendor/vlucas/phpdotenv/src/Repository/Adapter/GuardedWriter.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Dotenv\\Store\\StoreInterface' not found in wp-content/plugins/mein-seh-check/vendor/vlucas/phpdotenv/src/Store/FileStore.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'GrahamCampbell\\ResultType\\Result' not found in wp-content/plugins/mein-seh-check/vendor/graham-campbell/result-type/src/Success.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: block

mein-seh-check/meinsehcheck-wp.php 85% from 13 tests

The main file in "Mein Seh-Check" v. 0.6.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mein-seh-check.php" instead of "meinsehcheck-wp.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin7,689 lines of code in 94 files:
LanguageFilesBlank linesComment linesLines of code
PHP789772,7916,849
JSON1000800
Markdown313037
CSS2002
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity8.57
▷ Minimum class complexity1.00
▷ Maximum class complexity166.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces16
Interfaces9
Traits0
Classes52
▷ Abstract classes23.85%
▷ Concrete classes5096.15%
▷ Final classes4080.00%
Methods362
▷ Static methods14138.95%
▷ Public methods31185.91%
▷ Protected methods00.00%
▷ Private methods5114.09%
Functions161
▷ Named functions10867.08%
▷ Anonymous functions5332.92%
Constants28
▷ Global constants725.00%
▷ Class constants2175.00%
▷ Public constants942.86%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin