84% buooy-aviary-editor

Code Review | Buooy Aviary Editor

WordPress plugin Buooy Aviary Editor scored 84% from 54 tests.

About plugin

  • Plugin page: buooy-aviary-editor
  • Plugin version: 0.6.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.2.3
  • WordPress version: 6.3.1
  • First release: Jul 29, 2015
  • Latest release: Aug 11, 2015
  • Number of updates: 12
  • Update frequency: every 1.4 days
  • Top authors: Buooy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active / 4,261 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.85ms] Passed 4 tests

An overview of server-side resources used by Buooy Aviary Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.63 ▼8.22
Dashboard /wp-admin3.35 ▲0.0450.04 ▲0.97
Posts /wp-admin/edit.php3.46 ▲0.1047.07 ▼1.60
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.68 ▼14.56
Media Library /wp-admin/upload.php3.27 ▲0.0437.37 ▲1.69
Aviary Settings /wp-admin/options-general.php?page=aviary_settings3.2430.77

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

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

Browser metrics Passed 4 tests

Buooy Aviary Editor: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲14213.18 ▼1.201.76 ▼0.2337.94 ▼5.80
Dashboard /wp-admin2,331 ▲1405.88 ▲0.9799.76 ▼0.1060.65 ▲19.70
Posts /wp-admin/edit.php2,216 ▲1272.02 ▼0.0442.29 ▲2.6962.37 ▲27.05
Add New Post /wp-admin/post-new.php1,542 ▲2221.09 ▼1.77654.50 ▲15.2975.46 ▲24.39
Media Library /wp-admin/upload.php1,579 ▲1944.20 ▲0.0296.74 ▼5.6350.40 ▲7.33
Aviary Settings /wp-admin/options-general.php?page=aviary_settings9552.0323.6846.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/buooy-aviary-editor/v0.6.6/admin/views/view-settings.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/buooy-aviary-editor/v0.6.8/admin/views/view-settings.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/buooy-aviary-editor/v0.6.8/admin/class-buooy-aviary-editor.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/buooy-aviary-editor/v0.6.6/admin/class-buooy-aviary-editor.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/buooy-aviary-editor/v0.6.6/admin/class-buooy-aviary-editor-admin.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/buooy-aviary-editor/v0.6.9/admin/class-buooy-aviary-editor.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buooy-aviary-editor/v0.6.9/admin/lib/class-buooy-aviary-editor-ajax.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/buooy-aviary-editor/v0.6.9/admin/views/view-settings.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/buooy-aviary-editor/v0.6.8/admin/class-buooy-aviary-editor-admin.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buooy-aviary-editor/v0.6.9/admin/lib/class-buooy-aviary-editor-ajax.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: photo editor, photos, image editor, images, adobe creative sdk...

buooy-aviary-editor/buooy-aviary-editor.php Passed 13 tests

The main PHP file in "Buooy Aviary Editor" ver. 0.6.9 adds more information about the plugin and also serves as the entry point for this plugin
102 characters long description:
Buooy Aviary Editor allows you to use the powerful Aviary editor to crop, edit and manage your images.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin614 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP109957327
JavaScript34815150
Bourne Shell12935135
CSS20102

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity4.60
▷ Minimum class complexity3.00
▷ Maximum class complexity6.00
Average method complexity1.95
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods38
▷ Static methods00.00%
▷ Public methods38100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.88MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
v0.6.8/admin/assets/img/my-apps.png238.99KB125.67KB▼ 47.42%
v0.6.9/admin/assets/img/stewaard.v.0.5.0.png7.44KB8.04KB0.00%
v0.6.6/admin/assets/img/buooy-rectangle.png57.25KB25.64KB▼ 55.21%
v0.6.9/admin/assets/img/buooy-rectangle.png57.25KB25.64KB▼ 55.21%
v0.6.6/admin/assets/img/my-apps.png238.99KB125.67KB▼ 47.42%