84% embed-roomshare-japan

Code Review | Embed Roomshare Japan

WordPress plugin Embed Roomshare Japan scored84%from 54 tests.

About plugin

  • Plugin page: embed-roomshare-j...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-3.6.1
  • WordPress version: 6.3.1
  • First release: Oct 4, 2013
  • Latest release: Oct 4, 2013
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: roomshare (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,057 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼4.53ms] Passed 4 tests

This is a short check of server-side resources used by Embed Roomshare Japan
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.00 ▼0.40
Dashboard /wp-admin3.31 ▼0.0346.88 ▼15.14
Posts /wp-admin/edit.php3.36 ▲0.0148.97 ▼4.44
Add New Post /wp-admin/post-new.php5.89 ▲0.01107.83 ▲2.08
Media Library /wp-admin/upload.php3.23 ▲0.0137.51 ▲1.86

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Embed Roomshare Japan
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.71 ▼0.602.07 ▲0.1343.76 ▼0.44
Dashboard /wp-admin2,206 ▲155.85 ▼0.06107.47 ▲4.2942.47 ▼0.64
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0538.85 ▼6.4333.80 ▼2.99
Add New Post /wp-admin/post-new.php1,533 ▲1423.34 ▲0.17634.94 ▲22.0357.81 ▲9.78
Media Library /wp-admin/upload.php1,382 ▼64.30 ▲0.12102.35 ▲2.8646.48 ▲4.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 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/embed-roomshare-japan/embed-roomshare-japan.php:21

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 errors were detected

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:
  • Screenshots: Screenshot #1 (Roomshare Japan post embedded by oEmbed on a post) image missing
The official readme.txt might help

embed-roomshare-japan/embed-roomshare-japan.php Passed 13 tests

The principal PHP file in "Embed Roomshare Japan" v. 1.0.3 is loaded by WordPress automatically on each request
45 characters long description:
adds oEmbed support for Roomshare Japan links

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12910

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.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%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png89.34KB30.42KB▼ 65.95%