Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▲3.02ms] Passed 4 tests
Server-side resources used by Hide and Catch Email
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 56.82 ▲19.37 |
Dashboard /wp-admin | 3.51 ▲0.16 | 126.32 ▲62.01 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.65 ▲3.09 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 95.35 ▼3.17 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.06 ▼7.22 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Hide and Catch Email: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲110 | 13.21 ▼1.15 | 5.54 ▲3.85 | 53.66 ▲9.86 |
Dashboard /wp-admin | 2,259 ▲77 | 4.87 ▼0.10 | 101.46 ▼1.37 | 48.55 ▲3.43 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.04 | 34.22 ▼1.75 | 32.91 ▲1.85 |
Add New Post /wp-admin/post-new.php | 6,325 ▲4,806 | 26.10 ▲3.46 | 1,101.28 ▲508.52 | 63.58 ▲14.44 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.12 ▼0.09 | 96.29 ▼8.96 | 40.79 ▼5.73 |
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_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hide-and-catch-email/library/admin/post-meta-box.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hide-and-catch-email/hide-catch-email.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hide-and-catch-email/library/admin/dashboard.php: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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: catch-email, shortcode, email, content, replace...
hide-and-catch-email/hide-catch-email.php 85% from 13 tests
The main PHP script in "Hide and Catch Email" version 0.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 366 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hide-and-catch-email.php" instead of "hide-catch-email.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected542 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 126 | 161 | 468 |
JavaScript | 1 | 9 | 10 | 74 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin