83% cryptex

Code Review | Cryptex | E-Mail Address Protection

WordPress plugin Cryptex | E-Mail Address Protection scored83%from 54 tests.

About plugin

  • Plugin page: cryptex
  • Plugin version: 7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.4
  • WordPress version: 6.3.1
  • First release: Apr 23, 2011
  • Latest release: Apr 1, 2020
  • Number of updates: 115
  • Update frequency: every 28.4 days
  • Top authors: Andi Dittrich (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /18,267 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.46MB] [CPU: ▲0.32ms] Passed 4 tests

Server-side resources used by Cryptex | E-Mail Address Protection
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4745.81 ▲2.62
Dashboard /wp-admin3.77 ▲0.4755.92 ▲4.23
Posts /wp-admin/edit.php3.82 ▲0.4652.66 ▲3.19
Add New Post /wp-admin/post-new.php6.35 ▲0.4689.60 ▼8.74
Media Library /wp-admin/upload.php3.69 ▲0.4641.43 ▲5.81
About /wp-admin/admin.php?page=cryptex-about3.6036.86
Appearance /wp-admin/admin.php?page=cryptex-appearance3.6340.56
Options /wp-admin/admin.php?page=cryptex-options3.6638.07

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 82 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
cryptex-version
db_upgraded
widget_theysaidso_widget
cryptex-cache-hash

Browser metrics Passed 4 tests

A check of browser resources used by Cryptex | E-Mail Address Protection
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲6413.57 ▼0.802.28 ▲0.2742.85 ▲1.06
Dashboard /wp-admin2,234 ▲465.83 ▼0.0899.63 ▼2.3341.52 ▼7.91
Posts /wp-admin/edit.php2,120 ▲282.05 ▲0.0136.17 ▼5.4833.61 ▼5.34
Add New Post /wp-admin/post-new.php1,558 ▲2523.55 ▲0.14677.97 ▲1.9159.70 ▲3.70
Media Library /wp-admin/upload.php1,419 ▲314.20 ▼0.0897.99 ▼20.3444.84 ▼5.23
About /wp-admin/admin.php?page=cryptex-about1,0132.0030.1559.33
Appearance /wp-admin/admin.php?page=cryptex-appearance2,1412.4946.2463.05
Options /wp-admin/admin.php?page=cryptex-options1,8522.0332.8444.29

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
  • This plugin does not fully uninstall, leaving 8 options in the database
    • cryptex-cache-hash
    • theysaidso_admin_options
    • cryptex-version
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Cryptex\\ClassicRenderer' not found in wp-content/plugins/cryptex/modules/cryptex/Hdpi5Renderer.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/cryptex/Cryptex.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Cryptex\\ClassicRenderer' not found in wp-content/plugins/cryptex/modules/cryptex/HdpiCssRenderer.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Cryptex\\skltn\\Plugin' not found in wp-content/plugins/cryptex/modules/cryptex/Cryptex.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Too many tags (27 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

cryptex/Cryptex.php 85% from 13 tests

Analyzing the main PHP file in "Cryptex | E-Mail Address Protection" version 7.1
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 164 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cryptex.php" instead of "Cryptex.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
There were no executable files found in this plugin3,391 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
PHP478259482,487
PO File1127138406
CSS36568321
JavaScript34678152
HTML20025

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.46
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes28
▷ Abstract classes00.00%
▷ Concrete classes28100.00%
▷ Final classes00.00%
Methods141
▷ Static methods2417.02%
▷ Public methods12790.07%
▷ Protected methods74.96%
▷ Private methods74.96%
Functions17
▷ Named functions15.88%
▷ Anonymous functions1694.12%
Constants9
▷ Global constants888.89%
▷ Class constants111.11%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
resources/admin/offsets.png5.11KB1.58KB▼ 69.03%
resources/admin/badge80.png9.45KB3.48KB▼ 63.15%
resources/admin/badge40.png5.48KB1.90KB▼ 65.38%
resources/admin/badge150.png13.50KB5.15KB▼ 61.85%