Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/add-zip-codes-to-posts/zip-codes.php+104
file_get_contents(http://wp.com/wp-content/plugins/zip-codes/wpm_zip.sql): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
Server metrics [RAM: ▼0.90MB] [CPU: ▼317.12ms] Passed 4 tests
An overview of server-side resources used by USA Zip Codes by WP Monsters
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 53.33 ▲7.03 |
Dashboard /wp-admin | 3.45 ▲0.04 | 33.54 ▼0.03 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 37.68 ▼0.44 |
Add New Post /wp-admin/post-new.php | 3.26 ▼3.71 | 29.08 ▼1,265.42 |
Media Library /wp-admin/upload.php | 3.33 ▲0.03 | 25.85 ▼2.60 |
Zip-codes /wp-admin/options-general.php?page=optionZipCodes | 3.30 | 27.15 |
Server storage [IO: ▲2.50MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, no new options
New tables |
---|
wp_zipcodes |
Browser metrics Passed 4 tests
USA Zip Codes by WP Monsters: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,794 ▲40 | 15.98 ▲0.39 | 5.73 ▼0.19 | 1.88 ▼1.01 |
Dashboard /wp-admin | 2,894 ▲36 | 6.16 ▲0.07 | 117.59 ▼18.41 | 152.79 ▼11.52 |
Posts /wp-admin/edit.php | 2,666 ▼25 | 3.24 ▲0.01 | 66.09 ▼5.01 | 139.25 ▼4.29 |
Add New Post /wp-admin/post-new.php | 1,726 ▲36 | 16.96 ▼3.84 | 412.91 ▼124.58 | 154.80 ▼6.55 |
Media Library /wp-admin/upload.php | 1,708 ▲7 | 5.52 ▼0.02 | 140.11 ▼4.19 | 184.99 ▼2.73 |
Zip-codes /wp-admin/options-general.php?page=optionZipCodes | 1,030 | 2.44 | 55.51 | 111.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-zip-codes-to-posts/zip-codes.php:27
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=optionZipCodes
- > Network (severe)
wp-content/plugins/zip-codes/css/style.css?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=optionZipCodes
- > Network (severe)
wp-content/plugins/zip-codes/js/zip-codes.js?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (This screenshot shows how the plugin looks in admin side.), #2 (This screenshot shows the array you get after use get_post_meta().), #3 (This screenshot shows the settings page of this plugin.)
add-zip-codes-to-posts/zip-codes.php 92% from 13 tests
The principal PHP file in "USA Zip Codes by WP Monsters" v. 1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("add-zip-codes-to-posts.php" instead of "zip-codes.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 plugin43,568 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SQL | 1 | 0 | 0 | 43,192 |
PHP | 1 | 35 | 30 | 155 |
CSS | 1 | 21 | 1 | 131 |
JavaScript | 1 | 19 | 11 | 90 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 10 | |
▷ Named functions | 10 | 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
3 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 31.50KB | 10.21KB | ▼ 67.58% |
screenshot-3.png | 38.90KB | 12.07KB | ▼ 68.96% |
screenshot-2.png | 9.09KB | 1.25KB | ▼ 86.29% |