72% oqey-add-ons

Code Review | Plugin Name: oQey Add-ons

WordPress plugin Plugin Name: oQey Add-onsscored 72% from 54 tests.

About plugin

  • Plugin page: oqey-add-ons
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-3.6.1
  • WordPress version: 6.3.1
  • First release: Sep 25, 2012
  • Latest release: Apr 16, 2014
  • Number of updates: 9
  • Update frequency: every 63.8 days
  • Top authors: dariimd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 8,255 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼8.92ms] Passed 4 tests

A check of server-side resources used by Plugin Name: oQey Add-ons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0839.02 ▼7.96
Dashboard /wp-admin3.39 ▲0.0845.28 ▼5.57
Posts /wp-admin/edit.php3.44 ▲0.0846.96 ▼0.84
Add New Post /wp-admin/post-new.php5.97 ▲0.0887.49 ▼13.25
Media Library /wp-admin/upload.php3.30 ▲0.0731.84 ▼8.90
Watermark /wp-admin/admin.php?page=oQeyWatermark3.2828.85
Roles /wp-admin/admin.php?page=oQeyCropperRoles3.2831.57
oQey Add-ons /wp-admin/admin.php?page=oqey-add-ons3.2430.41

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
These are issues you should consider
  • There were 1 file (9.30KB) illegally modified outside of "wp-content/plugins/oqey-add-ons/" and "wp-content/uploads/"
    • (new file) wp-content/oqey_gallery/watermark/watermark.png
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
oqey_addons_watermark_settings
widget_theysaidso_widget
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

An overview of browser requirements for Plugin Name: oQey Add-ons
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲10014.74 ▲0.371.65 ▼0.3240.04 ▼8.05
Dashboard /wp-admin2,238 ▲505.86 ▼0.07109.70 ▼7.1778.24 ▲27.97
Posts /wp-admin/edit.php2,126 ▲372.02 ▲0.0238.09 ▲2.7638.70 ▲5.77
Add New Post /wp-admin/post-new.php1,544 ▲1123.38 ▲0.18782.80 ▲90.9151.55 ▼1.70
Media Library /wp-admin/upload.php1,423 ▲384.25 ▲0.0299.48 ▼1.1079.40 ▲32.51
Watermark /wp-admin/admin.php?page=oQeyWatermark7291.538.0517.94
Roles /wp-admin/admin.php?page=oQeyCropperRoles8912.1924.6025.62
oQey Add-ons /wp-admin/admin.php?page=oqey-add-ons7511.147.1817.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • oqey_addons_watermark_settings
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=oQeyWatermark
    • > Error in wp-content/plugins/oqey-add-ons/oqeywatermark.php+31
    Uncaught Error: Call to undefined function oQeyPluginUrl() in wp-content/plugins/oqey-add-ons/oqeywatermark.php:31
    Stack trace:
    #0 wp-content/plugins/oqey-add-ons/addonscore.php(18): include()
    #1 wp-includes/class-wp-hook.php(310): oqey_addons_watermark_page()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/admin.php(259): do_action()
    #5 {main}
    thrown
    • > GET request to /wp-admin/admin.php?page=oqey-add-ons
    • > Error in wp-content/plugins/oqey-add-ons/addonscore.php+47
    Uncaught Error: Call to undefined function oQeyPluginUrl() in wp-content/plugins/oqey-add-ons/addonscore.php:47
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): oqey_addons_top_page()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/admin.php(259): do_action()
    #4 {main}
    thrown

SRP 50% from 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
Please fix the following items
  • 6× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/oqey-add-ons/manageroles.php
    • > /wp-content/plugins/oqey-add-ons/oqeywatermark.php
    • > /wp-content/plugins/oqey-add-ons/updatelogo.php
    • > /wp-content/plugins/oqey-add-ons/oqey-addons-functions.php
    • > /wp-content/plugins/oqey-add-ons/oqeyaddons.php
    • > /wp-content/plugins/oqey-add-ons/addonscore.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=oqey-add-ons
    • > Network (severe)
    wp-content/plugins/oqey-gallery/images/oqeybanner.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Plugin Name: Please specify the plugin name on the first line ( === Plugin Name: oQey Add-ons=== )
The official readme.txt might help

oqey-add-ons/oqeyaddons.php 92% from 13 tests

The main PHP file in "Plugin Name: oQey Add-ons" ver. 0.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("oqey-add-ons.php" instead of "oqeyaddons.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
Good job! No executable or dangerous file extensions detected633 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP615234524
CSS22343109

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/oqeycropper.png0.70KB0.72KB0.00%
watermark.png9.30KB4.96KB▼ 46.70%
images/cropperbutton.png0.27KB0.24KB▼ 11.31%