10% wpcrypt

Code Review | WpCrypt

WordPress plugin WpCrypt scored 10% from 54 tests.

About plugin

  • Plugin page: wpcrypt
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 5.9.2
  • First release: Jul 26, 2013
  • Latest release: Apr 16, 2015
  • Number of updates: 36
  • Update frequency: every 18.1 days
  • Top authors: bruno.sousa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,448 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wpcrypt/wp-crypt.php+61
    Non-static method WpCryptCore::init() should not be called statically

Server metrics [RAM: ▼0.35MB] [CPU: ▼303.67ms] Passed 4 tests

Analyzing server-side resources used by WpCrypt
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0257.89 ▲9.16
Dashboard /wp-admin3.27 ▼0.1422.97 ▼9.86
Posts /wp-admin/edit.php3.33 ▼0.3125.37 ▼11.20
Add New Post /wp-admin/post-new.php6.06 ▼0.9180.99 ▼1,185.13
Media Library /wp-admin/upload.php3.28 ▼0.0220.13 ▼8.49

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options
_wpCryptKey

Browser metrics Passed 4 tests

A check of browser resources used by WpCrypt
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,808 ▲6315.99 ▲0.045.98 ▲0.092.46 ▲0.45
Dashboard /wp-admin2,901 ▲406.15 ▲0.00117.09 ▼14.25158.28 ▼2.33
Posts /wp-admin/edit.php2,705 ▲143.23 ▲0.0162.25 ▲1.57140.25 ▲3.14
Add New Post /wp-admin/post-new.php1,670 ▲917.01 ▲0.97393.68 ▼16.87156.44 ▲2.02
Media Library /wp-admin/upload.php1,711 ▲135.49 ▼0.03150.83 ▲14.75188.48 ▼0.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 1 option
    • _wpCryptKey

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wpcrypt/wp-crypt.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: password, sha1, security, hashes, aes...

wpcrypt/wp-crypt.php 92% from 13 tests

This is the main PHP file of "WpCrypt" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wpcrypt.php" instead of "wp-crypt.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected246 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP39388246

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity10.67
▷ Minimum class complexity2.00
▷ Maximum class complexity25.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods2191.30%
▷ Protected methods00.00%
▷ Private methods28.70%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin