84% tiemediahelper

Code Review | TIEmediahelper Media Library Tools

WordPress plugin TIEmediahelper Media Library Tools scored84%from 54 tests.

About plugin

  • Plugin page: tiemediahelper
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Nov 17, 2013
  • Latest release: Sep 10, 2014
  • Number of updates: 9
  • Update frequency: every 33.0 days
  • Top authors: TIEro (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /2,410 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.85ms] Passed 4 tests

Analyzing server-side resources used by TIEmediahelper Media Library Tools
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.52 ▼2.49
Dashboard /wp-admin3.33 ▲0.0245.97 ▼2.50
Posts /wp-admin/edit.php3.38 ▲0.0252.18 ▲3.96
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.26 ▼11.25
Media Library /wp-admin/upload.php3.25 ▲0.0236.41 ▲0.84
Media Helper /wp-admin/tools.php?page=TIEmediahelper_settings3.2232.84

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for TIEmediahelper Media Library Tools
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.24 ▼1.421.62 ▼0.0337.33 ▼4.95
Dashboard /wp-admin2,210 ▲225.86 ▲0.96107.10 ▲4.5541.05 ▼0.78
Posts /wp-admin/edit.php2,096 ▲42.00 ▼0.0240.03 ▲0.6135.06 ▼1.72
Add New Post /wp-admin/post-new.php1,531 ▼1118.38 ▲0.48626.25 ▲8.3556.29 ▼9.60
Media Library /wp-admin/upload.php1,395 ▲44.22 ▲0.0796.63 ▼4.5941.22 ▼1.99
Media Helper /wp-admin/tools.php?page=TIEmediahelper_settings8032.0223.4227.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tiemediahelper/TIEmediahelper.php:14

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 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:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
The official readme.txt might help

tiemediahelper/TIEmediahelper.php 92% from 13 tests

"TIEmediahelper Media Library Tools" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tiemediahelper.php" instead of "TIEmediahelper.php")

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 plugin127 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12432127

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions6
▷ Named functions6100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
mediahelper.png1.61KB1.51KB▼ 6.18%
start_button.png3.92KB2.09KB▼ 46.70%