78% aviary-editor

Code Review | Aviary Editor

WordPress plugin Aviary Editor scored78%from 54 tests.

About plugin

  • Plugin page: aviary-editor
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.0.0
  • WordPress version: 6.3.1
  • First release: Aug 4, 2012
  • Latest release: Sep 9, 2014
  • Number of updates: 6
  • Update frequency: every 127.8 days
  • Top authors: bainternet (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

200+ active /10,716 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by Aviary Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.70 ▼1.21
Dashboard /wp-admin3.38 ▲0.0350.80 ▼11.47
Posts /wp-admin/edit.php3.49 ▲0.1445.05 ▼2.18
Add New Post /wp-admin/post-new.php5.96 ▲0.0783.02 ▼41.08
Media Library /wp-admin/upload.php3.30 ▲0.0734.50 ▼2.36
Aviary Options /wp-admin/options-general.php?page=aviary-editor/aviary-editor.php3.2430.32

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Aviary Editor: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.18 ▼1.381.81 ▲0.1143.38 ▲1.38
Dashboard /wp-admin2,213 ▲285.86 ▼0.01111.89 ▲10.3142.17 ▼0.87
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0433.36 ▼6.2334.28 ▼5.24
Add New Post /wp-admin/post-new.php1,536 ▲2223.12 ▲5.52640.94 ▲45.5748.67 ▼4.23
Media Library /wp-admin/upload.php1,398 ▲74.15 ▼0.1095.71 ▼0.7641.13 ▼5.44
Aviary Options /wp-admin/options-general.php?page=aviary-editor/aviary-editor.php9632.0524.2027.87

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
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 36 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=aviary-editor/aviary-editor.php
    • > Notice in wp-content/plugins/aviary-editor/aviary-editor.php+372
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/aviary-editor/aviary-editor.php

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (Plugin Options panel.), #2 (Media Library with Aviary editor button.), #3 (Aviary editor inside WordPress.)
Please take inspiration from this readme.txt

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

"Aviary Editor" version 0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
82 characters long description:
A plugin that integrates The Awesome Aviary editor In the WordPress Media Library.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected292 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP143173286
JavaScript12156

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.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 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 1.07MB with 0.62MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png99.57KB30.33KB▼ 69.54%
screenshot-1.png19.47KB7.87KB▼ 59.58%
screenshot-3.png979.80KB230.83KB▼ 76.44%
aviary/edit-photo.png1.16KB0.88KB▼ 24.33%