10% imgturk

Code Review | ImgTurk

WordPress plugin ImgTurk scored10%from 54 tests.

About plugin

  • Plugin page: imgturk
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Jul 13, 2017
  • Latest release: Jul 13, 2017
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: johnypringles (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /654 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/imgturk/plugin.php+265
    Function create_function() is deprecated

Server metrics [RAM: ▼1.91MB] [CPU: ▼60.13ms] Passed 4 tests

Server-side resources used by ImgTurk
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.386.33 ▼38.05
Dashboard /wp-admin2.10 ▼1.205.50 ▼52.53
Posts /wp-admin/edit.php2.10 ▼1.267.28 ▼48.92
Add New Post /wp-admin/post-new.php2.10 ▼3.796.29 ▼101.03
Media Library /wp-admin/upload.php2.10 ▼1.135.75 ▼29.92

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_imgturk
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for ImgTurk
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲11313.38 ▼0.978.24 ▲6.5437.52 ▼8.22
Dashboard /wp-admin2,197 ▲175.62 ▼0.0293.86 ▼1.9142.70 ▼1.79
Posts /wp-admin/edit.php2,102 ▼12.01 ▲0.0138.40 ▲0.3736.14 ▲1.76
Add New Post /wp-admin/post-new.php1,528 ▲123.13 ▼0.15666.44 ▼32.5652.81 ▼3.33
Media Library /wp-admin/upload.php1,396 ▲24.24 ▼0.01102.07 ▲1.2240.78 ▼1.95

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/imgturk/plugin.php+265
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_imgturk
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: widget, boilerplate

imgturk/plugin.php 85% from 13 tests

The entry point to "ImgTurk" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("imgturk.php" instead of "plugin.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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 detected289 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP48090168
CSS215064
JavaScript19057

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.21MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png21.70KB8.29KB▼ 61.80%
assets/screenshot-1.png194.02KB65.54KB▼ 66.22%