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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.35 ▼1.11 | 8.11 ▼30.63 |
Dashboard /wp-admin | 2.37 ▼0.93 | 8.98 ▼43.57 |
Posts /wp-admin/edit.php | 2.38 ▼0.98 | 7.85 ▼43.63 |
Add New Post /wp-admin/post-new.php | 2.37 ▼3.51 | 6.08 ▼96.23 |
Media Library /wp-admin/upload.php | 2.37 ▼0.85 | 7.10 ▼34.76 |
CryptoPhoto /wp-admin/options-general.php?page=cryptophoto_wordpress | 2.38 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 13.34 ▼1.28 | 4.55 ▲2.80 | 40.38 ▼9.03 |
Dashboard /wp-admin | 2,224 ▲20 | 5.83 ▲0.88 | 99.93 ▼15.09 | 87.67 ▲41.73 |
Posts /wp-admin/edit.php | 2,112 ▲15 | 2.00 ▼0.00 | 37.06 ▲0.50 | 36.07 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,701 ▲156 | 24.56 ▲1.41 | 727.21 ▲79.39 | 61.88 ▼2.59 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.21 ▼0.03 | 105.35 ▼16.65 | 87.26 ▲34.44 |
CryptoPhoto /wp-admin/options-general.php?page=cryptophoto_wordpress | 925 | 2.19 | 23.79 | 31.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
- > PHP Parse error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 504 | 630 | 1,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 code | 0.42 |
Average class complexity | 24.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 5.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 48 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 91.21KB | 27.76KB | ▼ 69.57% |
screenshot-2.png | 95.20KB | 27.90KB | ▼ 70.70% |
images/icon-grey.png | 1.28KB | 0.95KB | ▼ 26.20% |
screenshot-4.png | 135.76KB | 37.96KB | ▼ 72.04% |
images/icon.png | 1.28KB | 1.20KB | ▼ 6.84% |