10% wp-images-upload-on-piclect

Code Review | WP images upload on piclect

WordPress plugin WP images upload on piclect scored10%from 54 tests.

About plugin

  • Plugin page: wp-images-upload-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Jul 25, 2014
  • Latest release: Sep 4, 2014
  • Number of updates: 16
  • Update frequency: every 2.6 days
  • Top authors: maffay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,760 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.95MB] [CPU: ▼59.94ms] Passed 4 tests

Server-side resources used by WP images upload on piclect
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.424.22 ▼38.87
Dashboard /wp-admin2.06 ▼1.286.04 ▼61.70
Posts /wp-admin/edit.php2.07 ▼1.295.78 ▼41.72
Add New Post /wp-admin/post-new.php2.06 ▼3.825.76 ▼97.48
Media Library /wp-admin/upload.php2.06 ▼1.165.11 ▼32.48

Server storage [IO: ▲2.27MB] [DB: ▲0.08MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: 2 new tables, 12 new options
New tables
wp_kuaza_piclect_upload
wp_kuaza_piclect_upload_kategori
New WordPress options
widget_recent-comments
kuaza_up_config_sitekey
widget_theysaidso_widget
kuaza_up_config_upapilink
kuaza_up_config_birkeredeuploadsayisi
theysaidso_admin_options
kuaza_up_config_cssupload
db_upgraded
widget_recent-posts
can_compress_scripts
...

Browser metrics Passed 4 tests

A check of browser resources used by WP images upload on piclect
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲14913.46 ▼0.8911.49 ▲9.4740.18 ▼1.67
Dashboard /wp-admin2,214 ▲345.57 ▼0.0886.07 ▼6.4639.28 ▼0.98
Posts /wp-admin/edit.php2,116 ▲132.01 ▲0.0533.09 ▼3.4837.07 ▲0.63
Add New Post /wp-admin/post-new.php1,539 ▲1023.11 ▼0.01644.76 ▲55.9549.71 ▲1.10
Media Library /wp-admin/upload.php1,413 ▲194.16 ▼0.0398.52 ▼7.5545.86 ▲1.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_kuaza_piclect_upload
    • wp_kuaza_piclect_upload_kategori
  • Zombie WordPress options were found after uninstall: 12 options
    • widget_theysaidso_widget
    • kuaza_up_config_cssupload
    • widget_recent-posts
    • theysaidso_admin_options
    • kuaza_up_config_sitekey
    • can_compress_scripts
    • widget_recent-comments
    • kuaza_up_config_acik
    • kuaza_up_config_sitesecret
    • kuaza_up_config_birkeredeuploadsayisi
    • ...

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Image upload form area (simple and clean)), #2 (Select images after open new area for details), #3 (Upload after :))
The official readme.txt is a good inspiration

wp-images-upload-on-piclect/wp-images-upload-on-Piclect.php 85% from 13 tests

"WP images upload on piclect" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-images-upload-on-piclect.php" instead of "wp-images-upload-on-Piclect.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 198 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,311 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1204951,120
PO File18089190
JavaScript1071

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity54.00
▷ Minimum class complexity54.00
▷ Maximum class complexity54.00
Average method complexity4.79
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 2.17MB with 1.47MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png6.99KB2.68KB▼ 61.65%
screenshot-2.png39.08KB12.29KB▼ 68.56%
screenshot-3.png2,178.60KB589.88KB▼ 72.92%