Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼145.16ms] Passed 4 tests
An overview of server-side resources used by Email JavaScript Cloak
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 39.84 ▲18.62 |
Dashboard /wp-admin | 3.07 ▲0.01 | 39.54 ▼10.55 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 46.84 ▲3.67 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 93.31 ▼572.69 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 33.32 ▼1.07 |
Server storage [IO: ▲0.04MB] [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, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Email JavaScript Cloak
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,813 ▲218 | 16.16 ▲0.54 | 11.90 ▲3.62 | 49.13 ▼2.57 |
Dashboard /wp-admin | 2,970 ▲36 | 6.07 ▲0.10 | 143.54 ▼18.29 | 112.26 ▼4.64 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.00 | 74.91 ▲5.71 | 101.69 ▲3.58 |
Add New Post /wp-admin/post-new.php | 1,604 ▼79 | 18.92 ▲0.48 | 382.96 ▼11.37 | 108.84 ▲4.30 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 4.99 ▼0.02 | 164.59 ▼3.92 | 127.91 ▲8.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
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
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/email-javascript-cloaker/email-js-cloak.php:38
- > PHP Fatal error
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)
Everything seems fine on the user side
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
5 plugin tags: cloaking, spam, harvest, email cloak, email address
email-javascript-cloaker/email-js-cloak.php 92% from 13 tests
This is the main PHP file of "Email JavaScript Cloak" version 1.03, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("email-javascript-cloaker.php" instead of "email-js-cloak.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
Good job! No executable or dangerous file extensions detected36 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 11 | 38 | 30 |
JavaScript | 1 | 1 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
There are no PNG files in this plugin