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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.11 ▲0.38 | 50.32 ▲27.00 |
Dashboard /wp-admin | 3.40 ▲0.34 | 51.64 ▼12.65 |
Posts /wp-admin/edit.php | 3.44 ▲0.33 | 53.33 ▲1.36 |
Add New Post /wp-admin/post-new.php | 5.69 ▲0.25 | 98.99 ▼568.48 |
Media Library /wp-admin/upload.php | 3.28 ▲0.27 | 38.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲107 | 15.79 ▲0.18 | 7.96 ▼5.55 | 55.16 ▼8.41 |
Dashboard /wp-admin | 2,959 ▲32 | 5.89 ▼0.06 | 159.91 ▼18.80 | 125.21 ▼22.39 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.00 | 83.76 ▲0.16 | 111.98 ▲6.06 |
Add New Post /wp-admin/post-new.php | 1,683 ▲68 | 18.50 ▼2.99 | 419.61 ▲77.92 | 126.38 ▼2.78 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.03 ▲0.02 | 171.02 ▲2.21 | 134.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:
- Screenshots: Please describe screenshot #2 in wpdevdesign-browser-detect-for-oxygen/assets to your 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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 142 | 438 | 1,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 code | 0.42 |
Average class complexity | 268.00 |
▷ Minimum class complexity | 268.00 |
▷ Maximum class complexity | 268.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 89 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 23.60% |
▷ Protected methods | 68 | 76.40% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 91 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 91 | 100.00% |
▷ Public constants | 91 | 100.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