Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- This plugin did not install gracefully
- > 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.82MB] [CPU: ▼28.11ms] Passed 4 tests
A check of server-side resources used by USA Zip Codes by WP Monsters
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▼0.02 | 39.50 ▼11.25 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.55 ▼28.64 |
Posts /wp-admin/edit.php | 3.37 ▼0.48 | 58.32 ▲7.51 |
Add New Post /wp-admin/post-new.php | 3.10 ▼2.79 | 33.46 ▼73.61 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.41 ▲1.08 |
Zip-codes /wp-admin/options-general.php?page=optionZipCodes | 3.23 | 28.53 |
Server storage [IO: ▲2.50MB] [DB: ▲0.08MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_zipcodes |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by USA Zip Codes by WP Monsters
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.15 ▼1.50 | 4.88 ▲3.05 | 43.56 ▼8.36 |
Dashboard /wp-admin | 2,214 ▲32 | 4.84 ▼0.12 | 115.57 ▲9.96 | 47.36 ▼6.50 |
Posts /wp-admin/edit.php | 2,097 ▲11 | 2.02 ▲0.01 | 45.65 ▲10.88 | 43.12 ▲7.32 |
Add New Post /wp-admin/post-new.php | 1,521 ▲7 | 17.59 ▲0.01 | 650.11 ▼67.03 | 53.45 ▼14.94 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.20 ▲0.01 | 94.28 ▼2.14 | 42.95 ▼2.76 |
Zip-codes /wp-admin/options-general.php?page=optionZipCodes | 823 | 2.06 | 25.69 | 32.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
- 1× 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/add-zip-codes-to-posts/zip-codes.php:27
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=optionZipCodes
- > Network (severe)
wp-content/plugins/zip-codes/css/style.css?ver=6.3.1 - 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=6.3.1 - 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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #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
This is the main PHP file of "USA Zip Codes by WP Monsters" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected43,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
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
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
All PNG images should be compressed to minimize bandwidth usage for end users
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-2.png | 9.09KB | 1.25KB | ▼ 86.29% |
screenshot-3.png | 38.90KB | 12.07KB | ▼ 68.96% |