94% wp-fragment-cache

Code Review | WP Fragment Cache

WordPress plugin WP Fragment Cache scored 94% from 54 tests.

About plugin

  • Plugin page: wp-fragment-cache
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-3.9.1
  • WordPress version: 5.9.2
  • First release: Apr 26, 2014
  • Latest release: Jun 18, 2014
  • Number of updates: 8
  • Update frequency: every 6.8 days
  • Top authors: mariuspass (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,056 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼301.62ms] Passed 4 tests

This is a short check of server-side resources used by WP Fragment Cache
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.24 ▲0.0491.73 ▲36.90
Dashboard /wp-admin4.10 ▲0.0737.52 ▼50.37
Posts /wp-admin/edit.php4.38 ▲0.0641.24 ▼4.88
Add New Post /wp-admin/post-new.php7.62 ▲0.0399.75 ▼1,157.50
Media Library /wp-admin/upload.php4.04 ▲0.0633.12 ▲6.26
WP Fragment Cache /wp-admin/options-general.php?page=wp-fragment-cache4.0126.73

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Fragment Cache
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,806 ▲8415.29 ▼0.257.58 ▲1.902.44 ▲0.46
Dashboard /wp-admin2,915 ▲546.10 ▲0.00123.74 ▼14.40174.33 ▲7.63
Posts /wp-admin/edit.php2,709 ▲243.24 ▲0.0064.98 ▼25.25146.13 ▼2.06
Add New Post /wp-admin/post-new.php1,765 ▲10421.04 ▲3.87470.25 ▲69.03177.99 ▲14.24
Media Library /wp-admin/upload.php1,718 ▲205.61 ▲0.08161.63 ▲13.92216.03 ▼35.84
WP Fragment Cache /wp-admin/options-general.php?page=wp-fragment-cache1,1062.3959.24120.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-fragment-cache/admin/views/admin.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration Passed 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
6 plugin tags: performance, caching, fragment cache, cache, output caching...

wp-fragment-cache/wp-fragment-cache.php Passed 13 tests

The entry point to "WP Fragment Cache" version 1.0.4 is a PHP file that has certain tags in its header comment area
65 characters long description:
Boost your page performance by caching individual page fragments.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected377 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity22.00
▷ Minimum class complexity14.00
▷ Maximum class complexity30.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods1040.00%
▷ Public methods1768.00%
▷ Protected methods00.00%
▷ Private methods832.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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
There were not PNG files found in your plugin