84% zipaddr-jp

Code Review | zipaddr-jp

WordPress plugin zipaddr-jp scored84%from 54 tests.

About plugin

  • Plugin page: zipaddr-jp
  • Plugin version: 1.37
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.2
  • WordPress version: 6.3.1
  • First release: Dec 14, 2013
  • Latest release: May 26, 2023
  • Number of updates: 64
  • Update frequency: every 53.9 days
  • Top authors: ta_terunuma (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40,000+ active /250,141 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.33ms] Passed 4 tests

Server-side resources used by zipaddr-jp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0443.78 ▼0.03
Dashboard /wp-admin3.35 ▼0.0049.74 ▼18.19
Posts /wp-admin/edit.php3.40 ▲0.0453.69 ▲0.56
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.50 ▼19.65
Media Library /wp-admin/upload.php3.27 ▲0.0437.68 ▲2.40

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
zipaddr_define
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

zipaddr-jp: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.35 ▲0.071.63 ▲0.0341.29 ▼1.76
Dashboard /wp-admin2,214 ▲435.62 ▲0.0197.58 ▼3.0743.85 ▲0.49
Posts /wp-admin/edit.php2,119 ▲192.01 ▲0.0134.53 ▼2.3733.27 ▼4.55
Add New Post /wp-admin/post-new.php1,539 ▲923.05 ▲0.04687.65 ▲4.4756.99 ▼4.92
Media Library /wp-admin/upload.php1,413 ▲104.27 ▲0.0699.82 ▼2.7344.06 ▼5.75

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/zipaddr-jp/zipaddr-jp.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (https://zipaddr2.com/wordpress/popup.png)
You can take inspiration from this readme.txt

zipaddr-jp/zipaddr-jp.php Passed 13 tests

The main PHP script in "zipaddr-jp" version 1.37 is automatically included on every request by WordPress
59 characters long description:
The input convert an address from a zip code automatically.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected391 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5926391

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png2.64KB1.53KB▼ 42.08%
screenshot-1.png2.70KB1.57KB▼ 42.07%