78% wpdone-website-content-accelerator

Code Review | wp wpDone website content accelerator

WordPress plugin wp wpDone website content accelerator scored78%from 54 tests.

About plugin

  • Plugin page: wpdone-website-co...
  • Plugin version: 1.0.27
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8
  • WordPress version: 6.3.1
  • First release: Apr 28, 2017
  • Latest release: Jun 19, 2017
  • Number of updates: 28
  • Update frequency: every 1.9 days
  • Top authors: sfarrell5123 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,876 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
Install script ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▲4.15ms] Passed 4 tests

This is a short check of server-side resources used by wp wpDone website content accelerator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2147.52 ▲3.73
Dashboard /wp-admin3.54 ▲0.2453.67 ▲6.35
Posts /wp-admin/edit.php3.59 ▲0.2454.89 ▲7.97
Add New Post /wp-admin/post-new.php6.06 ▲0.1896.41 ▲5.80
Media Library /wp-admin/upload.php3.40 ▲0.1837.07 ▲0.70
wpDone website content accelerator /wp-admin/options-general.php?page=wwwce_settings-page3.3530.32

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
wwwce_settings
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for wp wpDone website content accelerator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7613.21 ▼1.172.23 ▲0.3842.28 ▼2.02
Dashboard /wp-admin2,222 ▲344.87 ▼0.0098.38 ▼4.2542.56 ▼0.83
Posts /wp-admin/edit.php2,104 ▲182.05 ▲0.0439.60 ▲3.8137.33 ▲4.19
Add New Post /wp-admin/post-new.php1,550 ▲1723.27 ▲0.08661.83 ▼12.7658.04 ▲4.83
Media Library /wp-admin/upload.php1,398 ▲164.20 ▼0.0194.20 ▼10.5041.62 ▼5.59
wpDone website content accelerator /wp-admin/options-general.php?page=wwwce_settings-page8152.0423.9129.13

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • wwwce_settings
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=wwwce_settings-page
    • > Notice in wp-content/plugins/wpdone-website-content-accelerator/vendor/voceconnect/voce-settings-api/voce-settings-api.php+200
    Undefined index: clearcache

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 take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpdone-website-content-accelerator/wp-wpDone-website-content-accelerator.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpdone-website-content-accelerator/wp-wpDone-website-content-accelerator.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpdone-website-content-accelerator/wp-wpDone-website-content-accelerator.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: content accelerator, wp content accelerator, free content accelerator, wordpress cdn, wp cdn...

wpdone-website-content-accelerator/wp-wpDone-website-content-accelerator.php 92% from 13 tests

"wp wpDone website content accelerator" version 1.0.27's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wpdone-website-content-accelerator.php" instead of "wp-wpDone-website-content-accelerator.php")

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
Everything looks great! No dangerous files found in this plugin907 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP13207324870
JSON10037

PHP code Passed 2 tests

A brief analysis 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.41
Average class complexity14.11
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods65
▷ Static methods46.15%
▷ Public methods5990.77%
▷ Protected methods00.00%
▷ Private methods69.23%
Functions20
▷ Named functions1785.00%
▷ Anonymous functions315.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot2.png39.22KB13.72KB▼ 65.01%
assets/screenshot1.png18.00KB11.30KB▼ 37.19%
assets/screenshot-1.png18.00KB11.30KB▼ 37.19%
assets/screenshot-2.png39.22KB13.72KB▼ 65.01%