84% cjdropshipping

Code Review | CJdropshipping

WordPress plugin CJdropshipping scored84%from 54 tests.

About plugin

  • Plugin page: cjdropshipping
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Nov 8, 2021
  • Latest release: Mar 2, 2022
  • Number of updates: 8
  • Update frequency: every 14.6 days
  • Top authors: cjdropshipping (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active /8,985 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.00MB] [CPU: ▼7.59ms] Passed 4 tests

Analyzing server-side resources used by CJdropshipping
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0051.35 ▲10.17
Dashboard /wp-admin3.31 ▼0.0346.51 ▼18.32
Posts /wp-admin/edit.php3.36 ▲0.0145.96 ▼5.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.15 ▼7.03
Media Library /wp-admin/upload.php3.23 ▲0.0141.71 ▲0.21

Server storage [IO: ▲0.02MB] [DB: ▲0.70MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for CJdropshipping
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.78 ▲0.172.80 ▲0.8849.54 ▲7.92
Dashboard /wp-admin2,213 ▲435.62 ▼0.0886.35 ▼6.8439.10 ▼0.30
Posts /wp-admin/edit.php2,115 ▲152.01 ▲0.0135.29 ▼3.4234.33 ▼6.03
Add New Post /wp-admin/post-new.php1,558 ▲2422.98 ▼0.02681.84 ▼42.8049.07 ▼6.30
Media Library /wp-admin/upload.php1,412 ▲124.23 ▲0.07105.37 ▼15.4845.56 ▼3.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • 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
Good news, no errors were detected

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
  • 1× 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/cjdropshipping/cjdropshipping.php:37

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: 100

cjdropshipping/cjdropshipping.php Passed 13 tests

Analyzing the main PHP file in "CJdropshipping" version 1.0.0
21 characters long description:
A simple jump plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected160 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11529160

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png9.45KB4.10KB▼ 56.61%