90% sync-nginx-helper-cloudflare

Code Review | Sync Nginx Helper with Cloudflare

WordPress plugin Sync Nginx Helper with Cloudflare scored90%from 54 tests.

About plugin

  • Plugin page: sync-nginx-helper...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 18, 2022
  • Latest release: Sep 3, 2022
  • Number of updates: 8
  • Update frequency: every 13.4 days
  • Top authors: Elliotvs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /371 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.49ms] Passed 4 tests

A check of server-side resources used by Sync Nginx Helper with Cloudflare
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.14 ▼4.08
Dashboard /wp-admin3.31 ▲0.0148.18 ▼4.73
Posts /wp-admin/edit.php3.36 ▲0.0047.13 ▼0.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.28 ▼12.30
Media Library /wp-admin/upload.php3.24 ▲0.0035.89 ▼0.85

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Sync Nginx Helper with Cloudflare: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.45 ▲0.011.80 ▼0.0140.89 ▼6.07
Dashboard /wp-admin2,206 ▲154.87 ▲0.03110.26 ▲3.1036.88 ▼7.33
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0238.50 ▲2.2736.78 ▼2.53
Add New Post /wp-admin/post-new.php1,542 ▼118.65 ▲0.20598.49 ▼69.4949.70 ▼7.23
Media Library /wp-admin/upload.php1,391 ▲34.14 ▼0.06103.38 ▲2.9941.05 ▼4.22

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: cloudflare, helper, nginx

sync-nginx-helper-cloudflare/sync-nginx-helper-cloudflare.php Passed 13 tests

"Sync Nginx Helper with Cloudflare" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
72 characters long description:
Automatically purge Cloudflare cache whenever Nginx Helper purges cache.

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 plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP112922

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions2
▷ Named functions2100.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
There were not PNG files found in your plugin