99% online-reviews-io

Code Review | Sessionly.io

WordPress plugin Sessionly.io scored 99% from 54 tests.

About plugin

  • Plugin page: online-reviews-io
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7+
  • WordPress version: 5.8.1
  • First release: May 29, 2018
  • Latest release: Sep 4, 2018
  • Number of updates: 7
  • Update frequency: every 14.1 days
  • Top authors: onlinereviewsio (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 393 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Sessionly.io
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1331.30 ▲8.03
Dashboard /wp-admin3.07 ▲0.0242.72 ▲1.53
Posts /wp-admin/edit.php3.13 ▲0.0245.44 ▼2.25
Add New Post /wp-admin/post-new.php5.43 ▼0.0090.51 ▼563.63
Media Library /wp-admin/upload.php3.02 ▲0.0231.83 ▼0.50
Sessionly.io /wp-admin/options-general.php?page=online_reviews_io_settings2.9928.40

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sessionly.io
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.94 ▲0.3010.12 ▲1.2946.72 ▲0.28
Dashboard /wp-admin2,972 ▲386.04 ▲0.09144.67 ▼3.34112.05 ▼3.09
Posts /wp-admin/edit.php2,744 ▲52.70 ▼0.0064.66 ▼4.96106.04 ▲16.27
Add New Post /wp-admin/post-new.php1,675 ▲6018.76 ▼3.21357.96 ▲80.68107.15 ▼0.75
Media Library /wp-admin/upload.php1,815 ▲115.01 ▼0.01137.62 ▼4.01120.31 ▲2.80
Sessionly.io /wp-admin/options-general.php?page=online_reviews_io_settings1,0462.1054.4475.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 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
3 plugin tags: reviews, analytics, tracking

online-reviews-io/online-reviews.io.php 85% from 13 tests

"Sessionly.io" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("online-reviews-io.php" instead of "online-reviews.io.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 465 characters long)

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
Success! There were no dangerous files found in this plugin65 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP114865

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions7
▷ Named functions7100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
logo.png31.76KB9.20KB▼ 71.02%