83% qqworld-auto-save-images

Code Review | QQWorld Auto Save Images

WordPress plugin QQWorld Auto Save Images scored83%from 54 tests.

About plugin

  • Plugin page: qqworld-auto-save...
  • Plugin version: 1.9.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: Aug 8, 2013
  • Latest release: Aug 3, 2021
  • Number of updates: 289
  • Update frequency: every 10.1 days
  • Top authors: qqworld (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

50,000+ active /482,236 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.08MB] [CPU: ▼11.63ms] Passed 4 tests

Analyzing server-side resources used by QQWorld Auto Save Images
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5540.18 ▲0.87
Dashboard /wp-admin3.84 ▲0.4950.62 ▼15.27
Posts /wp-admin/edit.php3.95 ▲0.6048.28 ▲2.85
Add New Post /wp-admin/post-new.php3.98 ▼1.9058.34 ▼34.96
Media Library /wp-admin/upload.php3.76 ▲0.5348.00 ▲14.58
QQWorld Auto Save Images /wp-admin/options-general.php?page=qqworld-auto-save-images3.7746.31

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

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

Browser metrics Passed 4 tests

Checking browser requirements for QQWorld Auto Save Images
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.78 ▲0.401.69 ▼0.0739.90 ▼4.24
Dashboard /wp-admin2,213 ▲254.85 ▼0.06107.77 ▼8.4741.04 ▼1.92
Posts /wp-admin/edit.php2,093 ▲12.01 ▼0.1536.70 ▲0.7131.10 ▼4.33
Add New Post /wp-admin/post-new.php3,105 ▲1,5917.89 ▼9.76204.13 ▼480.2372.19 ▲17.82
Media Library /wp-admin/upload.php1,395 ▲74.25 ▲0.0598.46 ▼0.0844.84 ▲0.23
QQWorld Auto Save Images /wp-admin/options-general.php?page=qqworld-auto-save-images5,39320.78537.2429.55

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/qqworld-auto-save-images/qqworld-auto-save-images.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Requires php: The plugin version is formatted incorrectly
The official readme.txt is a good inspiration

qqworld-auto-save-images/qqworld-auto-save-images.php 92% from 13 tests

The main PHP file in "QQWorld Auto Save Images" ver. 1.9.8 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin8,169 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PO File41,5652,4814,136
PHP11261302,355
JavaScript42015662
CSS2151514
SVG1100502

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity116.00
▷ Minimum class complexity6.00
▷ Maximum class complexity226.00
Average method complexity5.60
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods50
▷ Static methods00.00%
▷ Public methods50100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 0.52MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/products/plugins/qqworld-checkout/package.png75.80KB18.04KB▼ 76.19%
images/watermark.png8.21KB3.71KB▼ 54.84%
images/products/plugins/qqworld-synchronizer/package.png62.32KB14.90KB▼ 76.09%
images/products/plugins/qqworld-woocommerce-assistant/package.png77.04KB17.59KB▼ 77.17%
images/qrcode/alipay-follow.png17.33KB16.42KB▼ 5.27%