68% pic-sell

Code Review | Pic Sell

WordPress plugin Pic Sell scored68%from 54 tests.

About plugin

  • Plugin page: pic-sell
  • Plugin version: 1.0.11
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2022
  • Latest release: Nov 4, 2022
  • Number of updates: 9
  • Update frequency: every 17.1 days
  • Top authors: benjamincestre (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /326 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.79MB] [CPU: ▼31.28ms] Passed 4 tests

This is a short check of server-side resources used by Pic Sell
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1639.49 ▼6.43
Dashboard /wp-admin3.16 ▼0.1829.32 ▼34.96
Posts /wp-admin/edit.php3.16 ▼0.1926.77 ▼20.21
Add New Post /wp-admin/post-new.php3.16 ▼2.7329.23 ▼60.96
Media Library /wp-admin/upload.php3.16 ▼0.0727.92 ▼8.98
All private spaces /wp-admin/edit.php?post_type=espaceprive3.1624.10
Add private space /wp-admin/post-new.php?post_type=espaceprive3.1628.50
Settings /wp-admin/admin.php?page=picsell_settings-pic3.1625.69
Orders /wp-admin/admin.php?page=picsell_page_commandes3.1624.81
Offer packs /wp-admin/edit.php?post_type=offre3.1625.66
Category offer /wp-admin/edit-tags.php?taxonomy=offre_category&post_type=offre3.1621.97
Dashboard /wp-admin/admin.php?page=picsell3.1624.80

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Pic Sell: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,100 ▲35415.41 ▲1.035.08 ▲3.3942.75 ▲0.84
Dashboard /wp-admin2,422 ▲2336.75 ▲1.84129.84 ▲12.8540.76 ▼0.74
Posts /wp-admin/edit.php2,332 ▲2403.75 ▲1.7369.49 ▲31.8235.08 ▲1.68
Add New Post /wp-admin/post-new.php1,569 ▲4023.31 ▲5.06623.62 ▼26.7154.33 ▲1.51
Media Library /wp-admin/upload.php1,465 ▲774.42 ▲0.1995.30 ▼7.3941.68 ▼4.07
All private spaces /wp-admin/edit.php?post_type=espaceprive1,3013.7261.2728.16
Add private space /wp-admin/post-new.php?post_type=espaceprive2,6487.94172.5572.76
Settings /wp-admin/admin.php?page=picsell_settings-pic1,7337.83152.2949.18
Orders /wp-admin/admin.php?page=picsell_page_commandes1,0543.5042.0325.29
Offer packs /wp-admin/edit.php?post_type=offre1,2973.5750.1428.72
Category offer /wp-admin/edit-tags.php?taxonomy=offre_category&post_type=offre1,5013.4241.4128.75
Dashboard /wp-admin/admin.php?page=picsell1,0093.2739.3723.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
    • > Warning in wp-content/plugins/pic-sell/admin/class-pic-sell-admin.php+503
    file_put_contents(wp-content/uploads/pic_sell/.htaccess): failed to open stream: No such file or directory
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=picsell
    • > Warning in wp-content/plugins/pic-sell/admin/class-pic-sell-admin.php+503
    file_put_contents(wp-content/uploads/pic_sell/.htaccess): failed to open stream: No such file or directory

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
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/pic-sell/public/partials/pic-sell-public-display.php
    • > /wp-content/plugins/pic-sell/includes/class-pic-sell-stream.php
    • > /wp-content/plugins/pic-sell/admin/partials/pic-sell-admin-display.php
    • > /wp-content/plugins/pic-sell/templates/templateOrders.php

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 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Contributors: Plugin contributors not specified
  • Screenshots: Add an image for screenshot #2 (private gallery page)
You can take inspiration from this readme.txt

pic-sell/pic-sell.php 92% from 13 tests

The entry point to "Pic Sell" version 1.0.11 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin13,418 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP228497664,398
CSS6193563,941
SVG1002,671
JavaScript64081942,081
PO File2136207308
Markdown116018
JSON1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity31.27
▷ Minimum class complexity1.00
▷ Maximum class complexity183.00
Average method complexity4.22
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods87
▷ Static methods33.45%
▷ Public methods6878.16%
▷ Protected methods00.00%
▷ Private methods1921.84%
Functions20
▷ Named functions840.00%
▷ Anonymous functions1260.00%
Constants12
▷ Global constants12100.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