84% pochipp

Code Review | Pochipp

WordPress plugin Pochipp scored84%from 54 tests.

About plugin

  • Plugin page: pochipp
  • Plugin version: 1.12.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: May 2, 2021
  • Latest release: Nov 26, 2023
  • Number of updates: 59
  • Update frequency: every 15.9 days
  • Top authors: wppochipp (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20,000+ active /296,520 total downloads

Benchmarks

Plugin footprint 83% 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 gracefully, with no errors

Server metrics [RAM: ▲0.64MB] [CPU: ▼1.44ms] Passed 4 tests

Analyzing server-side resources used by Pochipp
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.10 ▲0.6342.62 ▲2.43
Dashboard /wp-admin3.99 ▲0.6453.41 ▼18.08
Posts /wp-admin/edit.php4.05 ▲0.6854.55 ▼0.53
Add New Post /wp-admin/post-new.php6.62 ▲0.7297.04 ▲11.93
Media Library /wp-admin/upload.php3.85 ▲0.6243.42 ▲10.42
ポチップ設定 /wp-admin/edit.php?post_type=pochipps&page=pochipp_settings4.0247.52
ポチップ管理 /wp-admin/edit.php?post_type=pochipps3.9742.93
Add New /wp-admin/post-new.php?post_type=pochipps6.6283.07
商品カテゴリー /wp-admin/edit-tags.php?taxonomy=pochipp_cat&post_type=pochipps3.8639.72

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 131 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
pochipp_settings
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Pochipp
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲6214.70 ▲0.361.57 ▼0.5436.69 ▼24.90
Dashboard /wp-admin2,239 ▲625.62 ▼0.0490.79 ▼21.9150.27 ▲4.08
Posts /wp-admin/edit.php2,141 ▲411.97 ▲0.0338.83 ▲0.8345.23 ▲5.27
Add New Post /wp-admin/post-new.php6,239 ▲4,71319.10 ▼4.05905.26 ▲299.3038.17 ▼21.85
Media Library /wp-admin/upload.php1,444 ▲444.21 ▲0.0496.92 ▼1.9648.30 ▲6.81
ポチップ設定 /wp-admin/edit.php?post_type=pochipps&page=pochipp_settings8,3244.87185.64246.38
ポチップ管理 /wp-admin/edit.php?post_type=pochipps1,1461.9332.5949.95
Add New /wp-admin/post-new.php?post_type=pochipps6,17825.65960.7657.25
商品カテゴリー /wp-admin/edit-tags.php?taxonomy=pochipp_cat&post_type=pochipps1,3152.1229.5757.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • pochipp_settings
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pochipp/inc/menu/onboarding.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'POCHIPP' not found in wp-content/plugins/pochipp/inc/thickbox/serach_items.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'POCHIPP' not found in wp-content/plugins/pochipp/inc/thickbox/form_rakuten.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/pochipp/inc/thickbox/form_registerd.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/pochipp/inc/thickbox/form_amazon.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'POCHIPP' not found in wp-content/plugins/pochipp/inc/thickbox/form_yahoo.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: affiliate, block

pochipp/pochipp.php 92% from 13 tests

The primary PHP file in "Pochipp" version 1.12.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 197 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected8,473 lines of code in 115 files:
LanguageFilesBlank linesComment linesLines of code
PHP446836083,917
JavaScript372283202,157
Sass155101121,917
JSON700392
SVG63984
CSS6006

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity14.29
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits2
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods48
▷ Static methods2960.42%
▷ Public methods4083.33%
▷ Protected methods00.00%
▷ Private methods816.67%
Functions68
▷ Named functions5073.53%
▷ Anonymous functions1826.47%
Constants11
▷ Global constants327.27%
▷ Class constants872.73%
▷ Public constants8100.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.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/blogcard_1.png11.96KB4.50KB▼ 62.39%
assets/img/box_preview_img.png18.04KB18.94KB0.00%
assets/img/onboarding_4.png18.37KB8.07KB▼ 56.07%
assets/img/pochipp-logo.png6.10KB6.52KB0.00%
assets/img/onboarding_3.png26.80KB10.42KB▼ 61.12%