84% image-teleporter

Code Review | Image Teleporter

WordPress plugin Image Teleporter scored 84% from 54 tests.

About plugin

  • Plugin page: image-teleporter
  • Plugin version: 1.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.4
  • WordPress version: 5.8.1
  • First release: Nov 22, 2013
  • Latest release: Dec 9, 2015
  • Number of updates: 28
  • Update frequency: every 26.7 days
  • Top authors: BlueMedicineLabs (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

2,000+ active / 25,608 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.11MB] [CPU: ▼142.40ms] Passed 4 tests

This is a short check of server-side resources used by Image Teleporter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.94 ▲0.2242.87 ▲21.08
Dashboard /wp-admin3.17 ▲0.1142.62 ▼17.85
Posts /wp-admin/edit.php3.22 ▲0.1145.56 ▲5.12
Add New Post /wp-admin/post-new.php5.52 ▲0.0997.86 ▼562.49
Media Library /wp-admin/upload.php3.11 ▲0.1139.47 ▲5.64
Image Teleporter /wp-admin/options-general.php?page=bml_it3.0933.11

Server storage [IO: ▲0.13MB] [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: 14 new files
Database: no new tables, 7 new options
New WordPress options
bml_it_whichimgs
bml_it_posttypelist
bml_it_replacesrc
bml_it_postmetalist
bml_it_authlist
bml_it_custtagname
bml_it_catlist

Browser metrics Passed 4 tests

An overview of browser requirements for Image Teleporter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11216.15 ▲0.228.07 ▼2.2550.68 ▼1.43
Dashboard /wp-admin2,972 ▲415.88 ▼0.19140.05 ▼1.03110.16 ▼13.91
Posts /wp-admin/edit.php2,744 ▲52.69 ▼0.0066.43 ▼4.4893.75 ▼2.22
Add New Post /wp-admin/post-new.php1,501 ▼10318.80 ▼0.02370.39 ▼8.22108.41 ▲1.55
Media Library /wp-admin/upload.php1,812 ▲54.99 ▼0.04151.61 ▲2.18125.32 ▲1.32
Image Teleporter /wp-admin/options-general.php?page=bml_it1,4672.1055.42127.46

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • bml_it_postmetalist
    • bml_it_custtagname
    • bml_it_catlist
    • bml_it_whichimgs
    • bml_it_posttypelist
    • bml_it_authlist
    • bml_it_replacesrc

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
Everything seems fine, however this is by no means 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 take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/image-teleporter/image-teleporter.php on line 29
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-teleporter/image-teleporter.php on line 29
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/image-teleporter/image-teleporter.php on line 29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

image-teleporter/image-teleporter.php 92% from 13 tests

The primary PHP file in "Image Teleporter" version 1.1.7 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 313 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin229 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3146820229

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity5.20
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
9 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/pinterest.png1.67KB1.36KB▼ 18.43%
images/google.png1.35KB1.50KB0.00%
images/feed.png1.07KB1.36KB0.00%
images/youtube.png1.72KB1.36KB▼ 20.73%
images/twitter.png0.64KB0.73KB0.00%