90% full-site-cache-cf

Code Review | Full Site Cache for CloudFront

WordPress plugin Full Site Cache for CloudFront scored90%from 54 tests.

About plugin

  • Plugin page: full-site-cache-cf
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7.2
  • WordPress version: 6.3.1
  • First release: Jan 29, 2017
  • Latest release: Feb 27, 2017
  • Number of updates: 12
  • Update frequency: every 2.1 days
  • Top authors: ze3kr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,072 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.03MB] [CPU: ▼7.99ms] Passed 4 tests

Analyzing server-side resources used by Full Site Cache for CloudFront
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.14 ▼1.44
Dashboard /wp-admin3.34 ▼0.0048.54 ▼11.00
Posts /wp-admin/edit.php3.39 ▲0.0448.60 ▲0.36
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.79 ▼16.67
Media Library /wp-admin/upload.php3.26 ▲0.0433.72 ▼2.86

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Full Site Cache for CloudFront: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.391.64 ▼0.0743.33 ▲2.21
Dashboard /wp-admin2,209 ▲245.86 ▲0.04107.30 ▲1.6735.62 ▼15.44
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0040.52 ▲1.5436.23 ▲0.56
Add New Post /wp-admin/post-new.php1,537 ▲423.20 ▲0.03649.67 ▼5.4867.57 ▲9.93
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0298.99 ▲3.0441.16 ▼2.20

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: html, cdn, optimize, cache, proxy...

full-site-cache-cf/full-site-cache-cf.php 92% from 13 tests

The main file in "Full Site Cache for CloudFront" v. 0.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected114 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12459114

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected