90% wpdevdesign-oxygen-navigator

Code Review | WPDevDesign - Oxygen - Navigator

WordPress plugin WPDevDesign - Oxygen - Navigator scored 90% from 54 tests.

About plugin

  • Plugin page: wpdevdesign-oxyge...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 12, 2019
  • Latest release: Dec 7, 2020
  • Number of updates: 8
  • Update frequency: every 50.4 days
  • Top authors: srikat (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active / 6,859 total downloads

Benchmarks

Plugin footprint 83% from 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.00MB] [CPU: ▼1.92ms] Passed 4 tests

This is a short check of server-side resources used by WPDevDesign - Oxygen - Navigator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.91 ▲0.11
Dashboard /wp-admin3.31 ▲0.0145.88 ▼3.87
Posts /wp-admin/edit.php3.36 ▲0.0046.19 ▼3.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.11 ▼0.10
Media Library /wp-admin/upload.php3.23 ▲0.0036.11 ▲0.05

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WPDevDesign - Oxygen - Navigator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.59 ▼0.791.65 ▲0.0242.18 ▲1.57
Dashboard /wp-admin2,205 ▲175.81 ▲0.9199.14 ▼12.6438.40 ▼4.12
Posts /wp-admin/edit.php2,091 ▲22.01 ▼0.0333.84 ▼7.5734.31 ▼3.18
Add New Post /wp-admin/post-new.php1,530 ▼323.29 ▲0.00594.86 ▼106.5151.76 ▲3.24
Media Library /wp-admin/upload.php1,384 ▼44.24 ▲0.0695.30 ▼1.8339.55 ▼6.82

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: oxygen, oxygen builder, toolbar

wpdevdesign-oxygen-navigator/plugin.php 92% from 13 tests

The main PHP script in "WPDevDesign - Oxygen - Navigator" version 1.0.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wpdevdesign-oxygen-navigator.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin136 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13261121
CSS13015

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.69
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%
Functions4
▷ Named functions4100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/oxygen-icon.png0.49KB0.83KB0.00%