WordPress plugin CryptoPhoto scored10%from 54 tests.

About plugin

  • Plugin page: cryptophoto-two-a...
  • Plugin version: 1.20180612
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.4
  • WordPress version: 6.3.1
  • First release: Aug 26, 2013
  • Latest release: Jun 11, 2018
  • Number of updates: 67
  • Update frequency: every 26.3 days
  • Top authors: 2fa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,815 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/cryptophoto-two-and-multi-factor-authentication/include/CryptoPhotoUtils.php+43
    Methods with the same name as their class will not be constructors in a future version of PHP; CryptoPhotoUtils has a deprecated constructor

Server metrics [RAM: ▼1.63MB] [CPU: ▼54.55ms] Passed 4 tests

A check of server-side resources used by CryptoPhoto
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.35 ▼1.118.11 ▼30.63
Dashboard /wp-admin2.37 ▼0.938.98 ▼43.57
Posts /wp-admin/edit.php2.38 ▼0.987.85 ▼43.63
Add New Post /wp-admin/post-new.php2.37 ▼3.516.08 ▼96.23
Media Library /wp-admin/upload.php2.37 ▼0.857.10 ▼34.76
CryptoPhoto /wp-admin/options-general.php?page=cryptophoto_wordpress2.386.50

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

CryptoPhoto: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6913.34 ▼1.284.55 ▲2.8040.38 ▼9.03
Dashboard /wp-admin2,224 ▲205.83 ▲0.8899.93 ▼15.0987.67 ▲41.73
Posts /wp-admin/edit.php2,112 ▲152.00 ▼0.0037.06 ▲0.5036.07 ▲0.25
Add New Post /wp-admin/post-new.php1,701 ▲15624.56 ▲1.41727.21 ▲79.3961.88 ▼2.59
Media Library /wp-admin/upload.php1,406 ▲94.21 ▼0.03105.35 ▼16.6587.26 ▲34.44
CryptoPhoto /wp-admin/options-general.php?page=cryptophoto_wordpress9252.1923.7931.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/cryptophoto-two-and-multi-factor-authentication/include/CryptoPhotoUtils.php+43
    Methods with the same name as their class will not be constructors in a future version of PHP; CryptoPhotoUtils has a deprecated constructor
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=cryptophoto_wordpress
    • > Deprecated in wp-content/plugins/cryptophoto-two-and-multi-factor-authentication/include/CryptoPhotoUtils.php+43
    Methods with the same name as their class will not be constructors in a future version of PHP; CryptoPhotoUtils has a deprecated constructor

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Parse error
      syntax error, unexpected 'new' (T_NEW) in wp-content/plugins/cryptophoto-two-and-multi-factor-authentication/include/sha256.php on line 137
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cryptophoto-two-and-multi-factor-authentication/include/CryptoPhotoUsersListTable.php on line 13
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/cryptophoto-two-and-multi-factor-authentication/include/CryptoPhotoUsersListTable.php on line 13
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/cryptophoto-two-and-multi-factor-authentication/include/CryptoPhotoUsersListTable.php on line 13
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/cryptophoto-two-and-multi-factor-authentication/include/CryptoPhotoUsersListTable.php on line 13
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/cryptophoto-two-and-multi-factor-authentication/include/CryptoPhotoUsersListTable.php on line 13
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cryptophoto-two-and-multi-factor-authentication/include/CryptoPhotoUsersListTable.php on line 13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=cryptophoto_wordpress
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=cryptophoto_wordpress 168:26 Uncaught SyntaxError: Invalid or unexpected token

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (CryptoPhoto Settings page), #2 (CryptoPhoto Users page), #3 (CryptoPhoto Panel), #4 (CryptoPhoto Login)
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

cryptophoto-two-and-multi-factor-authentication/cryptophoto.php 92% from 13 tests

"CryptoPhoto" version 1.20180612's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cryptophoto-two-and-multi-factor-authentication.php" instead of "cryptophoto.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,801 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP55046301,801

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 issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity24.33
▷ Minimum class complexity1.00
▷ Maximum class complexity115.00
Average method complexity5.38
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods48100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.45MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png91.21KB27.76KB▼ 69.57%
screenshot-2.png95.20KB27.90KB▼ 70.70%
images/icon-grey.png1.28KB0.95KB▼ 26.20%
screenshot-4.png135.76KB37.96KB▼ 72.04%
images/icon.png1.28KB1.20KB▼ 6.84%