74% oembed-travis

Code Review | oEmbed Travis

WordPress plugin oEmbed Travis scored74%from 54 tests.

About plugin

  • Plugin page: oembed-travis
  • Plugin version: 0.3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: May 24, 2016
  • Latest release: Sep 18, 2016
  • Number of updates: 11
  • Update frequency: every 10.7 days
  • Top authors: kamataryo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,924 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.90MB] [CPU: ▼55.28ms] Passed 4 tests

This is a short check of server-side resources used by oEmbed Travis
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.375.08 ▼37.09
Dashboard /wp-admin2.11 ▼1.206.43 ▼45.34
Posts /wp-admin/edit.php2.11 ▼1.256.36 ▼43.55
Add New Post /wp-admin/post-new.php2.11 ▼3.786.35 ▼95.15
Media Library /wp-admin/upload.php2.11 ▼1.124.86 ▼32.47

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

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

Browser metrics Passed 4 tests

Checking browser requirements for oEmbed Travis
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲11313.59 ▼0.825.85 ▲3.7542.95 ▼5.19
Dashboard /wp-admin2,206 ▲184.85 ▼0.02100.20 ▼10.0738.01 ▼2.49
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0538.30 ▲1.3933.60 ▲0.36
Add New Post /wp-admin/post-new.php1,514 ▼017.73 ▲0.13664.06 ▲52.4958.51 ▼1.07
Media Library /wp-admin/upload.php1,391 ▲34.26 ▲0.0196.82 ▼9.2544.55 ▼1.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/oembed-travis/oembed-travis.php+34
    implode(): Passing glue string after array is deprecated. Swap the parameters
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

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

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oembed-travis/oembed-travis.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: link, url, post, travis ci, travis...

oembed-travis/oembed-travis.php Passed 13 tests

The main file in "oEmbed Travis" v. 0.3.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
83 characters long description:
Embed your build logs on Travis CI into WordPress easily. Discuss on your history:)

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 detected951 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1151343
PHP14915272
CoffeeScript13615181
Bourne Shell1211094
PO File16839
JSON10013
YAML1409

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods538.46%
▷ Public methods1076.92%
▷ Protected methods00.00%
▷ Private methods323.08%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin