84% turbolinks

Code Review | Turbolinks

WordPress plugin Turbolinks scored84%from 54 tests.

About plugin

  • Plugin page: turbolinks
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7.5
  • WordPress version: 6.3.1
  • First release: May 23, 2017
  • Latest release: May 23, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: justnorris (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active /3,381 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.90ms] Passed 4 tests

An overview of server-side resources used by Turbolinks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.16 ▼3.94
Dashboard /wp-admin3.31 ▼0.0443.21 ▼19.40
Posts /wp-admin/edit.php3.36 ▲0.0048.46 ▲0.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.19 ▼12.21
Media Library /wp-admin/upload.php3.23 ▲0.0033.43 ▼0.03

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Turbolinks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.71 ▼0.672.47 ▲0.6442.26 ▼0.73
Dashboard /wp-admin2,212 ▲244.98 ▼0.90106.40 ▼11.6737.76 ▼6.00
Posts /wp-admin/edit.php2,095 ▲62.08 ▼0.0437.77 ▼0.0634.80 ▼0.15
Add New Post /wp-admin/post-new.php1,533 ▲1423.36 ▲0.26714.73 ▲58.1556.54 ▼0.45
Media Library /wp-admin/upload.php1,397 ▲94.21 ▲0.0397.95 ▼6.8641.77 ▼4.18

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/turbolinks/turbolinks.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt is a good inspiration

turbolinks/turbolinks.php Passed 13 tests

The main file in "Turbolinks" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
Speed up your site with Turbolinks

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
Good job! No executable or dangerous file extensions detected10 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16108
JavaScript1042

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin