94% 0-delay-late-caching-for-feeds

Code Review | Late Caching for Feeds

WordPress plugin Late Caching for Feeds scored 94% from 54 tests.

About plugin

  • Plugin page: 0-delay-late-cach...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.8
  • WordPress version: 5.9.2
  • First release: Oct 29, 2018
  • Latest release: Nov 2, 2018
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: miunosoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,202 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼294.13ms] Passed 4 tests

This is a short check of server-side resources used by Late Caching for Feeds
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.2554.56 ▲1.28
Dashboard /wp-admin3.60 ▲0.1938.31 ▲4.12
Posts /wp-admin/edit.php3.83 ▲0.1838.53 ▲2.83
Add New Post /wp-admin/post-new.php7.14 ▲0.1695.57 ▼1,177.80
Media Library /wp-admin/upload.php3.54 ▲0.2424.95 ▼2.83

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Late Caching for Feeds: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,789 ▲6716.20 ▲0.586.03 ▼0.681.90 ▼0.92
Dashboard /wp-admin2,895 ▲346.12 ▼0.06119.35 ▼13.65153.40 ▼7.75
Posts /wp-admin/edit.php2,694 ▲33.24 ▲0.0164.44 ▲1.50138.71 ▼4.05
Add New Post /wp-admin/post-new.php1,661 ▼016.39 ▼0.29403.44 ▼2.03156.02 ▼8.60
Media Library /wp-admin/upload.php1,698 ▼05.52 ▼0.04139.79 ▲1.17180.79 ▼5.64

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 75% from 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 everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'LateCachingForFeeds_AdminPageFramework_Utility' not found in wp-content/plugins/0-delay-late-caching-for-feeds/include/utility/apf/LateCachingForFeeds_AdminPageFramework_Debug.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'LateCachingForFeeds_AdminPageFramework_Utility' not found in wp-content/plugins/0-delay-late-caching-for-feeds/include/utility/LateCachingForFeeds_Utility.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'SimplePie_Cache' not found in wp-content/plugins/0-delay-late-caching-for-feeds/include/custom_simplepie/LateCachingForFeeds_SimplePie_Cache.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'LateCachingForFeeds_AdminPageFramework_Debug' not found in wp-content/plugins/0-delay-late-caching-for-feeds/include/utility/LateCachingForFeeds_Debug.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Feed_Cache_Transient' not found in wp-content/plugins/0-delay-late-caching-for-feeds/include/custom_simplepie/LateCachingForFeeds_SimplePie_Cache_Transient_Normal.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'LateCachingForFeeds_Utility' not found in wp-content/plugins/0-delay-late-caching-for-feeds/include/main/LateCachingForFeeds_SimplePieSubClassSetter.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'LateCachingForFeeds_Registry' not found in wp-content/plugins/0-delay-late-caching-for-feeds/include/class-list.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'LateCachingForFeeds_SimplePie_Cache_Transient_Normal' not found in wp-content/plugins/0-delay-late-caching-for-feeds/include/custom_simplepie/LateCachingForFeeds_SimplePie_Cache_Transient.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'LateCachingForFeeds_Utility' not found in wp-content/plugins/0-delay-late-caching-for-feeds/include/utility/LateCachingForFeeds_WPUtility.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can look at the official readme.txt

0-delay-late-caching-for-feeds/0-delay-late-caching-for-feeds.php Passed 13 tests

This is the main PHP file of "Late Caching for Feeds" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
74 characters long description:
Implements a late caching mechanism for the built-in WordPress RSS parser.

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
Good job! No executable or dangerous file extensions detected1,061 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP13873021,040
Markdown111021

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity7.96
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes25
▷ Abstract classes1040.00%
▷ Concrete classes1560.00%
▷ Final classes16.67%
Methods129
▷ Static methods11186.05%
▷ Public methods9775.19%
▷ Protected methods43.10%
▷ Private methods2821.71%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants00.00%
▷ Class constants14100.00%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin