99% wpdevdesign-browser-detect-for-oxygen

Code Review | WPDevDesign - Oxygen - Browser Detect

WordPress plugin WPDevDesign - Oxygen - Browser Detect scored 99% from 54 tests.

About plugin

  • Plugin page: wpdevdesign-brows...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.3
  • WordPress version: 5.8.1
  • First release: Nov 15, 2019
  • Latest release: Feb 14, 2020
  • Number of updates: 5
  • Update frequency: every 18.8 days
  • Top authors: srikat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 673 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by WPDevDesign - Oxygen - Browser Detect
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.11 ▲0.3850.32 ▲27.00
Dashboard /wp-admin3.40 ▲0.3451.64 ▼12.65
Posts /wp-admin/edit.php3.44 ▲0.3353.33 ▲1.36
Add New Post /wp-admin/post-new.php5.69 ▲0.2598.99 ▼568.48
Media Library /wp-admin/upload.php3.28 ▲0.2738.35 ▼4.26

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WPDevDesign - Oxygen - Browser Detect
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲10715.79 ▲0.187.96 ▼5.5555.16 ▼8.41
Dashboard /wp-admin2,959 ▲325.89 ▼0.06159.91 ▼18.80125.21 ▼22.39
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0083.76 ▲0.16111.98 ▲6.06
Add New Post /wp-admin/post-new.php1,683 ▲6818.50 ▼2.99419.61 ▲77.92126.38 ▼2.78
Media Library /wp-admin/upload.php1,807 ▼35.03 ▲0.02171.02 ▲2.21134.41 ▼1.21

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

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention: You can take inspiration from this readme.txt

wpdevdesign-browser-detect-for-oxygen/plugin.php 92% from 13 tests

"WPDevDesign - Oxygen - Browser Detect" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wpdevdesign-browser-detect-for-oxygen.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,412 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21424381,412

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity268.00
▷ Minimum class complexity268.00
▷ Maximum class complexity268.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods89
▷ Static methods00.00%
▷ Public methods2123.60%
▷ Protected methods6876.40%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants91
▷ Global constants00.00%
▷ Class constants91100.00%
▷ Public constants91100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin