78% pixproof

Code Review | PixProof - Easy Photo Proofing for Photographers

WordPress plugin PixProof - Easy Photo Proofing for Photographers scored78%from 54 tests.

About plugin

  • Plugin page: pixproof
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.9-5.7.0
  • WordPress version: 6.3.1
  • First release: May 15, 2014
  • Latest release: Mar 5, 2021
  • Number of updates: 45
  • Update frequency: every 55.3 days
  • Top authors: babbardel (51.11%)euthelup (42.22%)pixelgrade (11.11%)

Code review

54 tests

User reviews

16 reviews

Install metrics

8,000+ active /117,537 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.97MB] [CPU: ▲4.86ms] Passed 4 tests

Server-side resources used by PixProof - Easy Photo Proofing for Photographers
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.17 ▲0.7051.34 ▲13.50
Dashboard /wp-admin4.38 ▲1.0757.94 ▲8.09
Posts /wp-admin/edit.php4.40 ▲1.0458.21 ▲1.64
Add New Post /wp-admin/post-new.php6.97 ▲1.0891.09 ▼3.19
Media Library /wp-admin/upload.php4.30 ▲1.0750.02 ▲12.88
PixProof /wp-admin/options-general.php?page=pixproof_settings4.6448.19
All Items /wp-admin/edit.php?post_type=proof_gallery4.3445.93
Add New /wp-admin/post-new.php?post_type=proof_gallery4.7862.47

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 369 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
pixproofversion
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by PixProof - Easy Photo Proofing for Photographers
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲16213.59 ▼0.779.85 ▲7.6447.07 ▲0.66
Dashboard /wp-admin2,240 ▲635.72 ▲0.0294.01 ▼1.5438.63 ▲1.64
Posts /wp-admin/edit.php2,142 ▲422.04 ▲0.0542.22 ▲6.2436.36 ▼2.11
Add New Post /wp-admin/post-new.php1,561 ▲3523.44 ▼0.29678.82 ▼35.5864.46 ▲12.43
Media Library /wp-admin/upload.php1,436 ▲334.41 ▲0.2496.87 ▼6.7545.29 ▲4.11
PixProof /wp-admin/options-general.php?page=pixproof_settings1,4475.63104.6048.26
All Items /wp-admin/edit.php?post_type=proof_gallery1,1451.9838.7132.04
Add New /wp-admin/post-new.php?post_type=proof_gallery2,7238.13185.7580.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • pixproofversion

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/pixproof/views/pixproof_gallery.php
    • > /wp-content/plugins/pixproof/views/pixproof_metadata.php
  • 43× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/pixproof/includes/vendor/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/pixproof/includes/vendor/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/pixproof/includes/vendor/cmb2/includes/types/CMB2_Type_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/pixproof/includes/vendor/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/pixproof/includes/vendor/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/pixproof/includes/vendor/cmb2/includes/types/CMB2_Type_Oembed.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/pixproof/includes/vendor/cmb2/includes/types/CMB2_Type_Picker_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/pixproof/includes/vendor/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/pixproof/includes/vendor/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/pixproof/includes/vendor/cmb2/includes/CMB2.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

pixproof/pixproof.php 92% from 13 tests

The main file in "PixProof - Easy Photo Proofing for Photographers" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/lang" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin48,379 lines of code in 226 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
PHP732,6377,2658,984
CSS181,1641,1574,682
JavaScript114095191,704
Markdown32250665
YAML16021

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.46
Average class complexity18.54
▷ Minimum class complexity1.00
▷ Maximum class complexity183.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes79
▷ Abstract classes1012.66%
▷ Concrete classes6987.34%
▷ Final classes11.45%
Methods643
▷ Static methods12719.75%
▷ Public methods53883.67%
▷ Protected methods9715.09%
▷ Private methods81.24%
Functions56
▷ Named functions56100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants646.15%
▷ Class constants753.85%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/vendor/cmb2/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
includes/vendor/cmb2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
includes/vendor/cmb2/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
includes/vendor/cmb2/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
includes/vendor/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%