84% boxer-image-upload

Code Review | Boxer Image Upload

WordPress plugin Boxer Image Upload scored84%from 54 tests.

About plugin

  • Plugin page: boxer-image-upload
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1
  • WordPress version: 6.3.1
  • First release: Mar 22, 2015
  • Latest release: Mar 22, 2015
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: mandeep007 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,550 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Boxer Image Upload
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0347.12 ▲0.77
Dashboard /wp-admin3.34 ▲0.0355.11 ▲0.88
Posts /wp-admin/edit.php3.39 ▲0.0354.89 ▼0.75
Add New Post /wp-admin/post-new.php5.94 ▲0.0594.81 ▼4.54
Media Library /wp-admin/upload.php3.26 ▲0.0340.40 ▲0.70

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Boxer Image Upload
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.28 ▼0.361.96 ▲0.3042.86 ▼2.70
Dashboard /wp-admin2,194 ▲175.59 ▼0.1182.92 ▼10.9138.39 ▼13.27
Posts /wp-admin/edit.php2,119 ▲192.28 ▲0.2539.67 ▲1.4234.70 ▼4.57
Add New Post /wp-admin/post-new.php1,530 ▼1123.49 ▲0.11726.42 ▲4.7767.99 ▲8.10
Media Library /wp-admin/upload.php1,406 ▲34.20 ▲0.00110.77 ▲12.6046.72 ▲2.09

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_boxer_image_upload_widget
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/boxer-image-upload/boxer-image-upload.php:12

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)
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: upload-image-with-link, image, upload, boxer-image-upload, image-upload

boxer-image-upload/boxer-image-upload.php 92% from 13 tests

The main PHP file in "Boxer Image Upload" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)

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
Good job! No executable or dangerous file extensions detected119 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ 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
There are no PNG files in this plugin