84% os-integration

Code Review | OS Integration

WordPress plugin OS Integration scored84%from 54 tests.

About plugin

  • Plugin page: os-integration
  • Plugin version: 3.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Mar 22, 2014
  • Latest release: Apr 17, 2023
  • Number of updates: 91
  • Update frequency: every 36.4 days
  • Top authors: GregRoss (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /6,941 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.30MB] [CPU: ▲1.71ms] Passed 4 tests

An overview of server-side resources used by OS Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3039.38 ▼2.13
Dashboard /wp-admin3.60 ▲0.3047.50 ▲2.12
Posts /wp-admin/edit.php3.72 ▲0.3650.81 ▲2.26
Add New Post /wp-admin/post-new.php6.18 ▲0.3093.25 ▲7.51
Media Library /wp-admin/upload.php3.53 ▲0.3037.10 ▲4.59
OS Integration /wp-admin/options-general.php?page=os-integration/os-integration.php3.5441.37

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_osintegration_widget
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
osintegration_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for OS Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.24 ▼1.164.89 ▲3.1741.20 ▲2.24
Dashboard /wp-admin2,210 ▲224.83 ▼1.07107.82 ▼4.3542.56 ▼3.55
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0138.90 ▲3.3935.83 ▲6.54
Add New Post /wp-admin/post-new.php1,550 ▲1618.36 ▼4.77596.38 ▼103.5978.60 ▲26.60
Media Library /wp-admin/upload.php1,389 ▲14.21 ▲0.01100.86 ▼0.5745.21 ▼0.04
OS Integration /wp-admin/options-general.php?page=os-integration/os-integration.php2,6704.1580.3282.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_osintegration_widget
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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
Good news, no errors were detected

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 items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/os-integration/widget.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/os-integration/widget.php:6

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (16 tag instead of maximum 10)
You can look at the official readme.txt

os-integration/os-integration.php Passed 13 tests

Analyzing the main PHP file in "OS Integration" version 3.0
102 characters long description:
Integrate your site in to your users OS, Windows Live Tiles, icons for Apple and Android, iOS Web App!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,932 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP73202481,519
CSS21725296
Markdown134060
JavaScript1121557

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity27.00
▷ Minimum class complexity26.00
▷ Maximum class complexity28.00
Average method complexity7.50
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/fdroid.png3.87KB2.39KB▼ 38.10%
images/microsoft.png0.25KB0.14KB▼ 42.97%
images/play.png3.50KB2.20KB▼ 37.10%
images/itunes.png4.36KB2.62KB▼ 39.89%
images/wordpress-logo.png4.21KB1.88KB▼ 55.20%