Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.87ms] Passed 4 tests
An overview of server-side resources used by Contact Us Page
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 44.45 ▼0.38 |
Dashboard /wp-admin | 3.34 ▲0.04 | 57.46 ▲4.60 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 50.72 ▼5.25 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 98.52 ▼4.20 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.02 ▼1.64 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Contact Us Page
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲46 | 14.25 ▼0.01 | 2.70 ▲0.62 | 58.18 ▲17.72 |
Dashboard /wp-admin | 2,211 ▲37 | 5.51 ▼0.20 | 87.48 ▲1.45 | 40.83 ▼7.01 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.03 ▲0.00 | 40.39 ▲0.28 | 36.83 ▼7.79 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.15 ▼0.08 | 620.06 ▲6.80 | 70.86 ▲16.87 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.19 ▼0.01 | 94.05 ▼13.20 | 49.11 ▲2.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
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
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× 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/contact-us-page/contact-us-page.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-us-page/settings/cup_settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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
7 plugin tags: icons, map, contact page, google map, contact form...
contact-us-page/contact-us-page.php Passed 13 tests
Analyzing the main PHP file in "Contact Us Page" version 1.0
15 characters long description:
Contact Us Page
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
No dangerous file extensions were detected215 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 39 | 19 | 192 |
CSS | 1 | 5 | 0 | 23 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 8 | |
▷ Named functions | 8 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/icons/twitter.png | 0.83KB | 0.64KB | ▼ 23.21% |
includes/icons/email.png | 0.37KB | 0.46KB | 0.00% |
includes/icons/google.png | 0.95KB | 0.73KB | ▼ 23.02% |
includes/icons/fax.png | 1.55KB | 0.97KB | ▼ 37.48% |
includes/icons/home.png | 0.38KB | 0.55KB | 0.00% |