74% istokmedia

Code Review | istOK MEdia Plugin

WordPress plugin istOK MEdia Plugin scored 74% from 54 tests.

About plugin

  • Plugin page: istokmedia
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.4
  • WordPress version: 6.3.1
  • First release: Aug 28, 2015
  • Latest release: Aug 28, 2015
  • Number of updates: 2
  • Update frequency: every 7.5 days
  • Top authors: jaroslawistok (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 885 total downloads

Benchmarks

Plugin footprint 65% 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.95MB] [CPU: ▼31.27ms] Passed 4 tests

A check of server-side resources used by istOK MEdia Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.28 ▼1.91
Dashboard /wp-admin3.00 ▼0.3122.32 ▼26.32
Posts /wp-admin/edit.php3.00 ▼0.3624.10 ▼21.54
Add New Post /wp-admin/post-new.php3.00 ▼2.8928.64 ▼61.30
Media Library /wp-admin/upload.php3.00 ▼0.2321.74 ▼15.92
istOKMEdia /wp-admin/options-general.php?page=____FILE____3.0024.88

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by istOK MEdia Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.35 ▼0.951.72 ▲0.0041.22 ▼2.17
Dashboard /wp-admin2,210 ▲225.90 ▲1.03107.59 ▲6.0642.55 ▼2.82
Posts /wp-admin/edit.php2,096 ▲42.00 ▼0.0239.06 ▼1.0234.62 ▼1.67
Add New Post /wp-admin/post-new.php1,517 ▲317.62 ▼6.05675.55 ▼1.6846.59 ▼7.95
Media Library /wp-admin/upload.php1,395 ▲44.17 ▼0.0294.84 ▼4.5143.57 ▼0.36
istOKMEdia /wp-admin/options-general.php?page=____FILE____7972.0222.9622.42

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
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/istokmedia/istOK MEdia.php+18
    Use of undefined constant ____FILE____ - assumed '____FILE____' (this will throw an Error in a future version of PHP)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=____FILE____
    • > Warning in wp-content/plugins/istokmedia/istOK MEdia.php+18
    Use of undefined constant ____FILE____ - assumed '____FILE____' (this will throw an Error in a future version of PHP)

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Nachdem Code platziert ist erscheint die Werbung an dieser Stelle.)
You can look at the official readme.txt

istokmedia/istOK MEdia.php 92% from 13 tests

The main PHP script in "istOK MEdia Plugin" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("istokmedia.php" instead of "istOK MEdia.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1181234

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

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