Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.14ms] Passed 4 tests
This is a short check of server-side resources used by Contact Us By Lord Linus
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.65 ▲2.24 |
Dashboard /wp-admin | 3.37 ▲0.03 | 50.81 ▼13.25 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 45.60 ▼0.49 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 82.34 ▼9.07 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.11 ▲5.53 |
Contact Us /wp-admin/admin.php?page=contect-us | 3.23 | 30.93 |
Uninstall /wp-admin/admin.php?page=uninstall | 3.26 | 33.39 |
Embed on Facebook /wp-admin/admin.php?page=facebookembd | 3.26 | 30.95 |
Entries /wp-admin/admin.php?page=entries-lord | 3.23 | 30.19 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: 1 new table, 6 new options
New tables |
---|
Lord_linus_contact_form |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Contact Us By Lord Linus
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 13.28 ▼1.02 | 1.63 ▼0.10 | 41.35 ▼2.76 |
Dashboard /wp-admin | 2,227 ▲39 | 4.87 ▼1.01 | 102.23 ▼0.38 | 81.23 ▲40.62 |
Posts /wp-admin/edit.php | 2,128 ▲60 | 2.02 ▼0.02 | 35.32 ▼0.61 | 33.98 ▼5.78 |
Add New Post /wp-admin/post-new.php | 1,380 ▼144 | 16.65 ▼6.43 | 679.08 ▲5.21 | 57.94 ▲6.14 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.14 ▼0.05 | 111.28 ▼1.36 | 66.29 ▲20.94 |
Contact Us /wp-admin/admin.php?page=contect-us | 936 | 2.08 | 24.96 | 26.90 |
Uninstall /wp-admin/admin.php?page=uninstall | 820 | 2.17 | 23.96 | 24.62 |
Embed on Facebook /wp-admin/admin.php?page=facebookembd | 935 | 2.02 | 24.39 | 28.92 |
Entries /wp-admin/admin.php?page=entries-lord | 821 | 2.01 | 25.26 | 33.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- Lord_linus_contact_form
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 15 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=entries-lord
- > Notice in wp-content/plugins/contact-us-by-lord-linus/contact-us.php+40
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/contact-us-by-lord-linus/contact-us.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/contact-us-by-lord-linus/facebookembd.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/contact-us-by-lord-linus/contact-us-by-lord-linus.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function query() on null in wp-content/plugins/contact-us-by-lord-linus/install-script.php:13
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Contact Us Form on a page), #2 (Entries into admin dashboard)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== contact-us-by-lord-linus ===
)
contact-us-by-lord-linus/contact-us.php 92% from 13 tests
The principal PHP file in "Contact Us By Lord Linus" v. 2.6 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("contact-us-by-lord-linus.php" instead of "contact-us.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
Success! There were no dangerous files found in this plugin5,658 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 893 | 39 | 4,737 |
PHP | 5 | 86 | 26 | 911 |
JavaScript | 2 | 0 | 5 | 10 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 11.67 |
▷ Minimum method complexity | 4.00 |
▷ Maximum method complexity | 22.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 36.49KB | 15.04KB | ▼ 58.78% |
sms.png | 1.01KB | 0.95KB | ▼ 6.64% |
screenshot-1.png | 72.51KB | 29.66KB | ▼ 59.09% |
bootstrap-assets/css/close.png | 1.87KB | 1.74KB | ▼ 6.60% |