89% oxyplug-preload

Code Review | Oxy Preload

WordPress plugin Oxy Preload scored89%from 54 tests.

About plugin

  • Plugin page: oxyplug-preload
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Jan 8, 2022
  • Latest release: Jul 22, 2023
  • Number of updates: 10
  • Update frequency: every 56.2 days
  • Top authors: oxyplug (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,689 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.30ms] Passed 4 tests

Analyzing server-side resources used by Oxy Preload
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.65 ▲0.36
Dashboard /wp-admin3.31 ▲0.0143.33 ▼8.17
Posts /wp-admin/edit.php3.36 ▲0.0142.90 ▼0.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.45 ▼4.49
Media Library /wp-admin/upload.php3.24 ▲0.0132.73 ▲2.71

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Oxy Preload
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.65 ▼0.731.93 ▼0.2446.50 ▼0.59
Dashboard /wp-admin2,209 ▲214.84 ▼0.03102.24 ▼0.9139.03 ▼2.24
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0533.69 ▼5.9031.95 ▼1.01
Add New Post /wp-admin/post-new.php1,514 ▼517.64 ▼5.69674.78 ▲16.9852.84 ▲1.74
Media Library /wp-admin/upload.php1,385 ▲34.20 ▲0.0199.30 ▲0.8841.86 ▼4.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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • 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)
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP 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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: lcp, image, seo, preload, core web vital...

oxyplug-preload/oxy-preload.php 77% from 13 tests

The entry point to "Oxy Preload" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("oxyplug-preload.php" instead of "oxy-preload.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 169 characters long)
  • Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "4.9")

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 plugin44 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161644

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 files were detected