72% aviary-photo-editor

Code Review | aviary photo editor

WordPress plugin aviary photo editor scored72%from 54 tests.

About plugin

  • Plugin page: aviary-photo-editor
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-3.7.0
  • WordPress version: 6.3.1
  • First release: Nov 8, 2013
  • Latest release: Nov 8, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: mine0327 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /5,638 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.15MB] [CPU: ▼15.95ms] Passed 4 tests

Server-side resources used by aviary photo editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0734.24 ▼1.46
Dashboard /wp-admin3.15 ▼0.1529.28 ▼18.34
Posts /wp-admin/edit.php3.29 ▼0.0731.79 ▼16.45
Add New Post /wp-admin/post-new.php5.51 ▼0.3870.12 ▼25.26
Media Library /wp-admin/upload.php3.22 ▼0.0129.01 ▼3.76
aviary photo editor options /wp-admin/options-general.php?page=aviary-photo-editor/aviary-photo-editor.php3.1324.75

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for aviary photo editor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.54 ▲0.021.73 ▲0.1741.69 ▼0.45
Dashboard /wp-admin2,216 ▲395.77 ▲0.1595.27 ▲7.6241.40 ▼2.72
Posts /wp-admin/edit.php2,123 ▲232.09 ▲0.1243.43 ▲3.9836.16 ▲0.95
Add New Post /wp-admin/post-new.php1,540 ▲823.21 ▲0.26642.07 ▼6.2753.69 ▼7.49
Media Library /wp-admin/upload.php1,415 ▲124.27 ▲0.1199.60 ▲6.9541.81 ▲0.87
aviary photo editor options /wp-admin/options-general.php?page=aviary-photo-editor/aviary-photo-editor.php9561.7525.7524.42

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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=aviary-photo-editor/aviary-photo-editor.php
    • > Notice in wp-content/plugins/aviary-photo-editor/aviary-photo-editor.php+154
    Trying to get property 'fileFormat' of non-object
  • 26 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=aviary-photo-editor/aviary-photo-editor.php
    • > Notice in wp-content/plugins/aviary-photo-editor/aviary-photo-editor.php+443
    Trying to access array offset on value of type bool

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/aviary-photo-editor/aviary-photo-editor.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=aviary-photo-editor/aviary-photo-editor.php
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=aviary-photo-editor/aviary-photo-editor.php 109:7 Uncaught ReferenceError: jQuery is not defined

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Plugin Options panel.), #2 (Media Library with Aviary editor button.), #3 (Aviary editor inside WordPress.)
The official readme.txt might help

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

The main PHP file in "aviary photo editor" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
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
Success! There were no dangerous files found in this plugin366 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP168180263
PO File2303297
JavaScript12156

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.26
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 1.85MB with 1.73MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png662.96KB49.05KB▼ 92.60%
screenshot-1.png62.18KB5.35KB▼ 91.40%
screenshot-2.png1,166.67KB35.39KB▼ 96.97%