83% dropship-me

Code Review | DropshipMe

WordPress plugin DropshipMe scored83%from 54 tests.

About plugin

  • Plugin page: dropship-me
  • Plugin version: 1.0.3.16
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Oct 9, 2018
  • Latest release: Sep 21, 2021
  • Number of updates: 64
  • Update frequency: every 16.8 days
  • Top authors: dropshipme (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

3,000+ active /200,558 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.05MB] [CPU: ▼5.07ms] Passed 4 tests

Analyzing server-side resources used by DropshipMe
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.80 ▼6.29
Dashboard /wp-admin3.36 ▲0.0645.33 ▼3.15
Posts /wp-admin/edit.php3.41 ▲0.0547.90 ▲4.91
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.03 ▼14.25
Media Library /wp-admin/upload.php3.29 ▲0.0539.22 ▲3.42

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 153 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for DropshipMe
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.48 ▲0.241.52 ▼0.4941.84 ▼5.47
Dashboard /wp-admin2,207 ▲194.86 ▼1.0399.83 ▼15.9839.31 ▼3.43
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0341.01 ▲0.3135.72 ▼2.51
Add New Post /wp-admin/post-new.php1,523 ▲423.16 ▼0.05670.69 ▲22.3654.56 ▲8.94
Media Library /wp-admin/upload.php1,389 ▲14.19 ▲0.01101.39 ▼4.2243.58 ▼1.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dropship-me/core/cron.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/dropship-me/dropship-me.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dropship-me/core/core.php:65
    • > PHP Fatal error
      Uncaught Error: Class 'dm\\dmTemplateRender' not found in wp-content/plugins/dropship-me/includes/dm/dmTemplate.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dropship-me/core/filters.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dropship-me/core/hooks.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dropship-me/core/setup.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

dropship-me/dropship-me.php 85% from 13 tests

The primary PHP file in "DropshipMe" version 1.0.3.16 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 229 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin17,723 lines of code in 137 files:
LanguageFilesBlank linesComment linesLines of code
PHP402,0728388,041
JavaScript339462843,492
CSS18217293,283
SVG45032,888
JSON10019

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity61.58
▷ Minimum class complexity12.00
▷ Maximum class complexity151.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods234
▷ Static methods20.85%
▷ Public methods11950.85%
▷ Protected methods4017.09%
▷ Private methods7532.05%
Functions73
▷ Named functions6791.78%
▷ Anonymous functions68.22%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.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
5 PNG files occupy 0.08MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/images/main/rating-stars.png0.41KB0.42KB0.00%
src/images/icons/eye.png0.79KB0.92KB0.00%
src/images/icons/plus_white.png1.83KB0.25KB▼ 86.62%
src/images/flags/flags_responsive.png79.51KB79.67KB0.00%
src/images/flags/flag_placeholder.png0.59KB0.60KB0.00%