84% teleport

Code Review | Teleport

WordPress plugin Teleport scored 84% from 54 tests.

About plugin

  • Plugin page: teleport
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-4.3.0
  • WordPress version: 6.3.1
  • First release: Aug 12, 2012
  • Latest release: Aug 20, 2015
  • Number of updates: 16
  • Update frequency: every 68.9 days
  • Top authors: srcoley (75%)douglaskarr (31.25%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active / 2,371 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Teleport
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.64 ▲2.97
Dashboard /wp-admin3.33 ▲0.0244.29 ▼2.49
Posts /wp-admin/edit.php3.38 ▲0.0245.23 ▲0.42
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.13 ▼0.52
Media Library /wp-admin/upload.php3.25 ▲0.0234.95 ▼2.26

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
teleport_admin_warp
widget_recent-posts

Browser metrics Passed 4 tests

Teleport: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,002 ▲26714.21 ▼0.1014.44 ▲12.8243.66 ▲5.67
Dashboard /wp-admin2,206 ▲205.90 ▲0.98108.75 ▼13.3942.34 ▼0.75
Posts /wp-admin/edit.php2,092 ▼02.01 ▼0.0339.03 ▼0.9035.57 ▲0.97
Add New Post /wp-admin/post-new.php1,534 ▲2023.22 ▲5.74623.17 ▼35.6150.18 ▼3.38
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.0294.11 ▼11.0941.15 ▼6.66

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • teleport_admin_warp
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 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/teleport/teleport.php:163

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Teleporter - Logged In), #2 (Teleporter - Logged Out), #3 (Diagram of the keyboard shortcuts)
Please take inspiration from this readme.txt

teleport/teleport.php 92% from 13 tests

The main PHP file in "Teleport" ver. 1.2.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 552 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin500 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2713204
CSS1240174
PHP11334122

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.28MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logout_icon.png2.62KB1.71KB▼ 34.64%
images/edit_icon.png1.93KB0.91KB▼ 53.06%
images/settings_icon.png1.83KB1.00KB▼ 45.57%
images/big_button_pressed.png5.62KB2.19KB▼ 61.09%
images/dash_icon.png1.66KB0.58KB▼ 65.10%