89% taro-browser-happy

Code Review | Taro Browser Happy

WordPress plugin Taro Browser Happy scored 89% from 54 tests.

About plugin

  • Plugin page: taro-browser-happy
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.8
  • WordPress version: 6.3.1
  • First release: Dec 29, 2021
  • Latest release: Dec 29, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: Tarosky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,768 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.04MB] [CPU: ▼6.27ms] Passed 4 tests

Server-side resources used by Taro Browser Happy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.63 ▼4.33
Dashboard /wp-admin3.35 ▲0.0447.41 ▼2.72
Posts /wp-admin/edit.php3.40 ▲0.0447.41 ▼3.59
Add New Post /wp-admin/post-new.php5.93 ▲0.0387.12 ▼14.43
Media Library /wp-admin/upload.php3.27 ▲0.0437.26 ▲1.73

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Taro Browser Happy
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲3413.20 ▼1.171.84 ▼0.1943.59 ▼3.31
Dashboard /wp-admin2,206 ▲155.90 ▲0.99112.58 ▲9.7040.92 ▲0.25
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0536.70 ▼3.6836.54 ▼0.17
Add New Post /wp-admin/post-new.php1,533 ▼023.09 ▼0.25678.39 ▲93.7453.70 ▲2.31
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.1997.58 ▼4.8542.94 ▲1.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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
The SRP test was a success

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 Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: ie, browser

taro-browser-happy/taro-browser-happy.php 85% from 13 tests

"Taro Browser Happy" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected281 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JSON30099
PHP173996
JavaScript251351
Sass16034
CSS1111

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions11
▷ Named functions545.45%
▷ Anonymous functions654.55%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin