89% arc-monetize-cache-and-accelerate

Code Review | Arc – A CDN to monetize, cache, and accelerate your website

WordPress plugin Arc – A CDN to monetize, cache, and accelerate your website scored89%from 54 tests.

About plugin

  • Plugin page: arc-monetize-cach...
  • Plugin version: 1.1.9
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.6
  • WordPress version: 6.3.1
  • First release: Jan 31, 2020
  • Latest release: Jan 14, 2021
  • Number of updates: 15
  • Update frequency: every 23.3 days
  • Top authors: arcio (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

300+ active /15,120 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.52ms] Passed 4 tests

An overview of server-side resources used by Arc – A CDN to monetize, cache, and accelerate your website
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.69 ▲1.31
Dashboard /wp-admin3.35 ▲0.0450.10 ▼1.54
Posts /wp-admin/edit.php3.40 ▲0.0451.33 ▲1.50
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.77 ▼7.36
Media Library /wp-admin/upload.php3.27 ▲0.0442.27 ▲6.68

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
arc_property_id
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Arc – A CDN to monetize, cache, and accelerate your website
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8614.81 ▲0.071.84 ▲0.1443.87 ▲2.54
Dashboard /wp-admin2,231 ▲285.79 ▼0.08104.35 ▲0.2841.09 ▼4.91
Posts /wp-admin/edit.php2,116 ▲162.04 ▲0.0339.00 ▲1.1235.39 ▼1.47
Add New Post /wp-admin/post-new.php1,539 ▲817.36 ▼5.90672.37 ▲23.1057.29 ▲6.47
Media Library /wp-admin/upload.php1,410 ▲134.29 ▲0.09102.16 ▼0.1644.80 ▲1.19

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
These attributes need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt might help

arc-monetize-cache-and-accelerate/arc.php 92% from 13 tests

The main PHP script in "Arc – A CDN to monetize, cache, and accelerate your website" version 1.1.9 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("arc-monetize-cache-and-accelerate.php" instead of "arc.php")

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
No dangerous file extensions were detected624 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31514391
PHP14233211
CSS24022

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected