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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▲0.20ms] Passed 4 tests
Analyzing server-side resources used by Obfuscate Email
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 42.49 ▲2.34 |
Dashboard /wp-admin | 3.49 ▲0.19 | 44.91 ▼1.36 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 49.85 ▲2.14 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 93.60 ▲6.53 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 38.75 ▼2.31 |
Obfuscate Email /wp-admin/options-general.php?page=obfuscate-email/obfuscate-email.php | 3.40 | 33.39 |
Server storage [IO: ▲0.12MB] [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 |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Obfuscate Email
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 13.18 ▼1.57 | 1.61 ▼0.61 | 39.99 ▼2.80 |
Dashboard /wp-admin | 2,210 ▲19 | 4.85 ▼0.02 | 107.31 ▲5.50 | 39.80 ▼4.84 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▼0.03 | 39.29 ▲0.30 | 34.75 ▼3.95 |
Add New Post /wp-admin/post-new.php | 1,536 ▼1 | 23.31 ▲0.23 | 660.55 ▼2.72 | 55.87 ▼5.31 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.19 ▼0.01 | 97.23 ▼5.76 | 41.44 ▼3.14 |
Obfuscate Email /wp-admin/options-general.php?page=obfuscate-email/obfuscate-email.php | 925 | 1.71 | 27.37 | 45.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% 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 everything seems fine, this is not an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/obfuscate-email/phpunit/bootstrap.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/obfuscate-email/phpunit/bootstrap.php on line 17
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/obfuscate-email/phpunit/bootstrap.php on line 17
- > 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: email, spam, coffee2code, obfuscate, obfuscation...
obfuscate-email/obfuscate-email.php Passed 13 tests
The main PHP script in "Obfuscate Email" version 3.8.1 is automatically included on every request by WordPress
61 characters long description:
Obfuscate email addresses to deter email-harvesting spammers.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,519 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 285 | 595 | 1,176 |
Markdown | 3 | 49 | 0 | 308 |
Bourne Shell | 1 | 6 | 2 | 21 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 44.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 1 | 33.33% |
Methods | 95 | |
▷ Static methods | 7 | 7.37% |
▷ Public methods | 82 | 86.32% |
▷ Protected methods | 12 | 12.63% |
▷ Private methods | 1 | 1.05% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
c2c_minilogo.png | 3.49KB | 1.91KB | ▼ 45.43% |