10% pics-io

Code Review | Pics.io digital asset management for WordPress

WordPress plugin Pics.io digital asset management for WordPress scored10%from 54 tests.

About plugin

  • Plugin page: pics-io
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 24, 2023
  • Latest release: Apr 24, 2023
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: toptechphoto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /490 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/pics-io/restApi.php+3
    The use statement with non-compound name 'WP_REST_Request' has no effect

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.35ms] Passed 4 tests

Analyzing server-side resources used by Pics.io digital asset management for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.68 ▲1.12
Dashboard /wp-admin3.31 ▲0.0153.40 ▼6.57
Posts /wp-admin/edit.php3.36 ▲0.0050.67 ▼1.97
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.56 ▼6.56
Media Library /wp-admin/upload.php3.23 ▲0.0034.63 ▼2.28

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Pics.io digital asset management for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▼0.031.74 ▲0.2344.09 ▲1.43
Dashboard /wp-admin2,199 ▲195.58 ▼0.2485.30 ▼3.1541.85 ▲1.24
Posts /wp-admin/edit.php2,104 ▲71.98 ▼0.0435.28 ▼2.4135.90 ▲1.53
Add New Post /wp-admin/post-new.php1,539 ▲1118.30 ▼4.57646.25 ▼43.4671.78 ▲14.12
Media Library /wp-admin/upload.php1,404 ▲74.20 ▲0.02108.30 ▲6.6546.47 ▲2.64

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pics-io/Pics.io.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pics-io/restApi.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: gallery, wordpress gallery plugin, dam, image, file storage

pics-io/Pics.io.php 92% from 13 tests

The principal PHP file in "Pics.io digital asset management for WordPress" v. 1.0.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("pics-io.php" instead of "Pics.io.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin511 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP35755282
JavaScript1357152
CSS14077

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods550.00%
▷ Protected methods00.00%
▷ Private methods550.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin