78% wprs-data-transporter

Code Review | WPRS Data Transporter

WordPress plugin WPRS Data Transporter scored78%from 54 tests.

About plugin

  • Plugin page: wprs-data-transpo...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: Apr 2, 2016
  • Latest release: Apr 2, 2016
  • Number of updates: 13
  • Update frequency: every 12.7 days
  • Top authors: hishaman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /940 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.43ms] Passed 4 tests

Server-side resources used by WPRS Data Transporter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.88 ▼2.41
Dashboard /wp-admin3.37 ▲0.0747.00 ▼5.99
Posts /wp-admin/edit.php3.42 ▲0.0748.74 ▲2.72
Add New Post /wp-admin/post-new.php5.95 ▲0.0783.40 ▼14.26
Media Library /wp-admin/upload.php3.30 ▲0.0734.55 ▼3.05
WPRS Data Transport /wp-admin/tools.php?page=wprsdt3.2429.77

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WPRS Data Transporter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.31 ▼0.041.77 ▲0.1841.28 ▲0.86
Dashboard /wp-admin2,196 ▲165.63 ▼0.2187.48 ▼8.7741.37 ▲2.02
Posts /wp-admin/edit.php2,101 ▲11.99 ▲0.0236.32 ▼1.4435.77 ▼0.35
Add New Post /wp-admin/post-new.php1,529 ▲323.64 ▲0.69646.49 ▼29.7557.75 ▲4.42
Media Library /wp-admin/upload.php1,401 ▲14.23 ▲0.08101.67 ▼0.0344.73 ▲3.04
WPRS Data Transport /wp-admin/tools.php?page=wprsdt8532.0023.9728.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/tools.php?page=wprsdt
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/tools.php?page=wprsdt
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=wprsdt
    • > Notice in wp-content/plugins/wprs-data-transporter/admin.php+131
    Undefined index: platform_old
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=wprsdt
    • > Notice in wp-content/plugins/wprs-data-transporter/admin.php+150
    Undefined index: platform_new

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
Please fix the following items
  • 2× 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/wprs-data-transporter/wprs-data-transporter.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wprs-data-transporter/admin.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 32 tag instead of maximum 10
  • Screenshots: Screenshot #1 (The WPRS Data Transporter UI, including the dropdown with some of the supported platforms) image required
The official readme.txt is a good inspiration

wprs-data-transporter/wprs-data-transporter.php 92% from 13 tests

The main PHP file in "WPRS Data Transporter" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected342 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4155184342

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon-128x128.png13.66KB5.70KB▼ 58.31%
banner-772x250.png35.75KB15.21KB▼ 57.44%
icon-256x256.png34.19KB13.41KB▼ 60.77%