Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼142.10ms] Passed 4 tests
Server-side resources used by Hide Email Address
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 32.37 ▲8.82 |
Dashboard /wp-admin | 3.08 ▲0.03 | 45.93 ▼2.74 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 48.24 ▼3.14 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 90.29 ▼562.09 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 33.68 ▼0.41 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Hide Email Address
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.96 ▼0.02 | 9.59 ▼3.23 | 47.75 ▲0.32 |
Dashboard /wp-admin | 2,975 ▲44 | 5.90 ▼0.02 | 154.98 ▼7.79 | 111.94 ▲2.51 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.71 ▼0.01 | 78.54 ▲9.83 | 89.02 ▲1.94 |
Add New Post /wp-admin/post-new.php | 1,617 ▼66 | 21.56 ▲5.33 | 294.24 ▼128.35 | 98.88 ▼11.66 |
Media Library /wp-admin/upload.php | 1,809 ▲2 | 5.03 ▼0.02 | 167.22 ▲8.38 | 112.00 ▼7.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/bg-hide-email-address/BgHideEmailAddress.php
- > /wp-content/plugins/bg-hide-email-address/ErrorLogging.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Hide Email Address button on the TimyMCE toolbar), #2 (Resulting text - visualy no difference to the rest of the paragraph), #3 (Selecting the protected email address)
bg-hide-email-address/BgHideEmailAddress.php 77% from 13 tests
The primary PHP file in "Hide Email Address" version 0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: Name the main plugin file the same as the plugin slug ("bg-hide-email-address.php" instead of "BgHideEmailAddress.php")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected246 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 60 | 36 | 151 |
JavaScript | 2 | 29 | 21 | 81 |
CSS | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 5 | 71.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 28.57% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin