89% oxygridlayout-by-oxyninja

Code Review | OxyGridLayout by OxyNinja

WordPress plugin OxyGridLayout by OxyNinja scored89%from 54 tests.

About plugin

  • Plugin page: oxygridlayout-by-...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.7.2
  • WordPress version: 6.3.1
  • First release: Mar 2, 2021
  • Latest release: May 26, 2021
  • Number of updates: 8
  • Update frequency: every 10.7 days
  • Top authors: rados51 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

80+ active /1,594 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.56ms] Passed 4 tests

This is a short check of server-side resources used by OxyGridLayout by OxyNinja
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0634.30 ▼5.38
Dashboard /wp-admin3.37 ▲0.0743.61 ▼3.73
Posts /wp-admin/edit.php3.48 ▲0.1346.67 ▼2.26
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.50 ▼6.85
Media Library /wp-admin/upload.php3.29 ▲0.0633.80 ▼1.00
OxyGridLayout /wp-admin/admin.php?page=oxy-grid-layout3.2632.56

Server storage [IO: ▲0.10MB] [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: 22 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
oxy_grid_layout
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by OxyGridLayout by OxyNinja
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲1.191.64 ▼2.4438.96 ▼4.73
Dashboard /wp-admin2,192 ▲175.54 ▼0.1481.30 ▼17.8437.52 ▼4.49
Posts /wp-admin/edit.php2,103 ▲61.99 ▲0.0039.91 ▲4.7034.64 ▲0.17
Add New Post /wp-admin/post-new.php1,526 ▼023.55 ▲0.81677.31 ▼11.6164.22 ▲8.44
Media Library /wp-admin/upload.php1,400 ▲64.16 ▼0.09102.70 ▲5.8648.71 ▲4.21
OxyGridLayout /wp-admin/admin.php?page=oxy-grid-layout9591.8933.4330.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

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 Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: design, grid layout, oxygen builder, oxyninja

oxygridlayout-by-oxyninja/oxy-grid-layout.php 85% from 13 tests

The entry point to "OxyGridLayout by OxyNinja" version 1.0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("oxygridlayout-by-oxyninja.php" instead of "oxy-grid-layout.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected532 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP791380273
JavaScript21011168
CSS215289
Markdown1002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity6.50
▷ Minimum class complexity2.00
▷ Maximum class complexity18.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods26
▷ Static methods27.69%
▷ Public methods2388.46%
▷ Protected methods00.00%
▷ Private methods311.54%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin