79% imega-teleport

Code Review | iMega Teleport

WordPress plugin iMega Teleport scored79%from 54 tests.

About plugin

  • Plugin page: imega-teleport
  • Plugin version: 1.6.14
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0.1
  • WordPress version: 6.3.1
  • First release: Jan 15, 2014
  • Latest release: Mar 25, 2015
  • Number of updates: 61
  • Update frequency: every 7.1 days
  • Top authors: iMega (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /5,581 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.39MB] [CPU: ▼3.52ms] Passed 4 tests

This is a short check of server-side resources used by iMega Teleport
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.4148.29 ▲6.75
Dashboard /wp-admin3.68 ▲0.3851.12 ▼2.47
Posts /wp-admin/edit.php3.80 ▲0.4461.35 ▲11.53
Add New Post /wp-admin/post-new.php6.28 ▲0.3994.67 ▼22.87
Media Library /wp-admin/upload.php3.60 ▲0.3840.82 ▲4.53
iMega Teleport /wp-admin/options-general.php?page=imegateleport_settings3.5741.05

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-posts
imegateleport-settings-zip
imegateleport-settings-postinstall
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for iMega Teleport
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲11413.18 ▼1.222.08 ▲0.2442.20 ▲0.72
Dashboard /wp-admin2,241 ▲534.91 ▼0.99112.27 ▲2.6942.29 ▲3.65
Posts /wp-admin/edit.php2,123 ▲342.19 ▲0.1838.24 ▲0.4635.55 ▲1.45
Add New Post /wp-admin/post-new.php1,546 ▲2721.31 ▼1.89633.74 ▼19.1150.76 ▼2.00
Media Library /wp-admin/upload.php1,423 ▲354.28 ▲0.08110.87 ▲4.7844.56 ▼2.71
iMega Teleport /wp-admin/options-general.php?page=imegateleport_settings8002.0227.0727.47

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
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/imega-teleport/imega-teleport.php+2149
    rmdir(wp-content/uploads/imegateleport_uploads/tmp): Directory not empty
  • The uninstall procedure has failed, leaving 9 options in the database
    • imegateleport_complete
    • widget_theysaidso_widget
    • can_compress_scripts
    • imegateleport-settings-postinstall
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • imegateleport-settings-zip

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 27 tag instead of maximum 10
Please take inspiration from this readme.txt

imega-teleport/imega-teleport.php 92% from 13 tests

"iMega Teleport" version 1.6.14's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 160 characters long)

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
Success! There were no dangerous files found in this plugin2,052 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12393471,891
JavaScript182093
HTML10055
SQL12024011
XML1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity337.00
▷ Minimum class complexity337.00
▷ Maximum class complexity337.00
Average method complexity6.42
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods62
▷ Static methods00.00%
▷ Public methods3962.90%
▷ Protected methods46.45%
▷ Private methods1930.65%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants78
▷ Global constants7596.15%
▷ Class constants33.85%
▷ Public constants3100.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.10MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png100.15KB35.50KB▼ 64.55%
teleport.png2.21KB2.21KB0.00%