89% oxy-howto-maker

Code Review | Oxy Howto Maker

WordPress plugin Oxy Howto Maker scored89%from 54 tests.

About plugin

  • Plugin page: oxy-howto-maker
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Dec 21, 2021
  • Latest release: Apr 15, 2023
  • Number of updates: 25
  • Update frequency: every 23.4 days
  • Top authors: oxyplug (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,454 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.27MB] [CPU: ▼0.32ms] Passed 4 tests

Server-side resources used by Oxy Howto Maker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2744.92 ▼2.55
Dashboard /wp-admin3.57 ▲0.2652.02 ▼0.55
Posts /wp-admin/edit.php3.68 ▲0.3258.23 ▲7.71
Add New Post /wp-admin/post-new.php6.17 ▲0.28108.32 ▲4.03
Media Library /wp-admin/upload.php3.49 ▲0.2638.46 ▼2.22

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Oxy Howto Maker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.21 ▼0.181.75 ▼0.0142.71 ▼0.68
Dashboard /wp-admin2,205 ▲345.70 ▲0.0995.32 ▲3.0637.46 ▼8.61
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0641.05 ▲2.0136.54 ▲2.29
Add New Post /wp-admin/post-new.php8,226 ▲6,69025.61 ▲7.30912.73 ▲246.6256.98 ▼12.05
Media Library /wp-admin/upload.php1,410 ▲134.25 ▲0.0698.73 ▼9.0644.03 ▼2.85

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add descriptions for screenshots #1, #10, #11, #12, #13, #14, #15, #2, #3, #4, #5, #6, #7, #8, #9 in oxy-howto-maker/assets to your readme.txt
You can look at the official readme.txt

oxy-howto-maker/index.php 92% from 13 tests

The entry point to "Oxy Howto Maker" version 1.1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("oxy-howto-maker.php" instead of "index.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
Success! There were no dangerous files found in this plugin2,507 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1127381,292
JavaScript111031645
CSS21012506
SVG10164

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity152.00
▷ Minimum class complexity152.00
▷ Maximum class complexity152.00
Average method complexity11.07
▷ Minimum method complexity1.00
▷ Maximum method complexity95.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
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

All PNG images should be compressed to minimize bandwidth usage for end users
17 compressed PNG files occupy 2.21MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-12.png97.71KB95.72KB▼ 2.04%
assets/screenshot-4.png106.70KB104.95KB▼ 1.65%
assets/screenshot-13.png156.51KB156.14KB0.24%
assets/screenshot-8.png80.12KB77.79KB▼ 2.90%
assets/icon-256x256.png15.28KB6.23KB▼ 59.25%