10% wis-scrapper

Code Review | WIS Scrapper

WordPress plugin WIS Scrapper scored10%from 54 tests.

About plugin

  • Plugin page: wis-scrapper
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 5, 2019
  • Latest release: Feb 5, 2019
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: wisdominfosoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /590 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/wis-scrapper/lib/forceutf8/Encoding.php+171
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.59MB] [CPU: ▼47.83ms] Passed 4 tests

Analyzing server-side resources used by WIS Scrapper
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.40 ▼1.078.21 ▼28.51
Dashboard /wp-admin2.42 ▼0.8910.78 ▼38.75
Posts /wp-admin/edit.php2.42 ▼0.949.15 ▼41.26
Add New Post /wp-admin/post-new.php2.42 ▼3.4710.17 ▼82.78
Media Library /wp-admin/upload.php2.42 ▼0.819.96 ▼23.45

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: 1 new table, 8 new options
New tables
wp_wis_backup_packages
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
wis_backup_settings
theysaidso_admin_options
db_upgraded
wis_backup_version_plugin
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WIS Scrapper
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6813.59 ▲0.391.72 ▼2.7144.54 ▲2.24
Dashboard /wp-admin2,223 ▲355.85 ▲0.9894.67 ▼16.7240.00 ▼5.81
Posts /wp-admin/edit.php2,082 ▼102.02 ▼0.0734.13 ▼7.2131.00 ▼7.15
Add New Post /wp-admin/post-new.php1,540 ▲2123.21 ▲0.00653.31 ▲74.3954.30 ▼6.00
Media Library /wp-admin/upload.php1,402 ▲114.22 ▼0.02102.91 ▲6.3145.84 ▲0.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wis-scrapper/lib/forceutf8/Encoding.php+171
    Array and string offset access syntax with curly braces is deprecated
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% 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 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wis-scrapper/templates/menus/multi-step/wis-step-3.php
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wis-scrapper/helpers/wis_ajax.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wis-scrapper/templates/menus/wis-main-add.php:18
    • > PHP Fatal error
      require_once(): Failed opening required 'WIS_SCRAPPER_PLUGIN_PATHhelpers/utilities/class.u.php' (include_path='.:/usr/share/php') in wp-content/plugins/wis-scrapper/helpers/class.server.php on line 14
    • > PHP Warning
      Use of undefined constant WIS_SCRAPPER_PLUGIN_PATH - assumed 'WIS_SCRAPPER_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wis-scrapper/helpers/class.server.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wis-scrapper/define.php:3
    • > PHP Warning
      require_once(WIS_SCRAPPER_PLUGIN_PATHhelpers/utilities/class.u.php): failed to open stream: No such file or directory in wp-content/plugins/wis-scrapper/helpers/class.server.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wis-scrapper/helpers/wis_menus_settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wis-scrapper/helpers/wis_enqueue_assets.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wis-scrapper/define.php:3

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Screenshot #1 (WIS_Scrapper_Admin_End) image required
  • Requires php: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

wis-scrapper/wis-scrapper.php Passed 13 tests

Analyzing the main PHP file in "WIS Scrapper" version 0.1
140 characters long description:
Custom plugin to download WordPress setup with full database. This plugin will help to make the migration and backup process easier for all.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,821 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP2141,0362,566
CSS6152932
JavaScript2013284
Markdown10039

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity24.41
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity4.95
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes29.09%
Methods128
▷ Static methods8364.84%
▷ Public methods11388.28%
▷ Protected methods21.56%
▷ Private methods1310.16%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants41
▷ Global constants2868.29%
▷ Class constants1331.71%
▷ Public constants13100.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
PNG images were not found in this plugin